refactor(powercord): make patch function

This commit is contained in:
Infinidoge 2022-04-17 16:40:24 -04:00
parent 6ed97e15b3
commit e7d0fc46c6

View file

@ -80,7 +80,7 @@
outputs = inputs@{ self, nixpkgs, fup, powercord-overlay, ... }: outputs = inputs@{ self, nixpkgs, fup, powercord-overlay, ... }:
let let
patches = ./patches; patch = name: "${./patches}/${name}.patch";
in in
fup.lib.mkFlake rec { fup.lib.mkFlake rec {
@ -120,7 +120,7 @@
discord-copy-role-color discord-copy-role-color
(applyPatches { (applyPatches {
src = discord-css-toggler; src = discord-css-toggler;
patches = [ "${patches}/css-toggler.patch" ]; patches = [ (patch "css-toggler") ];
name = "discord-css-toggler"; name = "discord-css-toggler";
}) })
discord-custom-timestamps discord-custom-timestamps