nix/overlay/Swappy.nix

25 lines
504 B
Nix
Raw Permalink Normal View History

2024-11-23 07:09:45 +03:00
{
__findFile,
config,
pkgs,
...
2024-12-18 10:58:37 +03:00
}:
let
color = config.module.style.color;
accentR = color.accentDecR;
accentG = color.accentDecG;
accentB = color.accentDecB;
in
{
# SEE: https://github.com/jtheoof/swappy/issues/131
nixpkgs.overlays = [
(final: prev: {
swappy = prev.swappy.overrideAttrs (old: {
2024-12-18 10:58:37 +03:00
patches = (old.patches or [ ]) ++ [
(pkgs.replaceVars <patch/swappy/DefaultColor.patch> { inherit accentR accentG accentB; })
];
});
})
];
2024-11-23 07:09:45 +03:00
}