overlays: patch ydict

This commit is contained in:
Guanran Wang 2023-11-03 22:52:18 +08:00
parent b48c61076f
commit 6a5f37bbed
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
2 changed files with 24 additions and 0 deletions

View file

@ -5,5 +5,6 @@
./nautilus.nix ./nautilus.nix
./sway.nix ./sway.nix
./prismlauncher.nix ./prismlauncher.nix
./ydict.nix
]; ];
} }

View file

@ -0,0 +1,23 @@
{ ... }:
{
nixpkgs = {
overlays = [
(final: prev:
{
ydict = prev.ydict.overrideAttrs (old: {
# Let ydict follow XDG
# .patch file from https://github.com/TimothyYe/ydict/pull/32
# yes i know theres `YDICT_DB`
patches = (old.patches or []) ++ [
(prev.fetchurl {
url = "https://github.com/TimothyYe/ydict/commit/5bb0bc3f44922893a17993e295bbcac82c4a0170.patch";
sha256 = "sha256-Wg7p7dzosbbghSOTDB7duLL4ecmMjQd5trNXqHh29cU=";
})
];
});
}
)
];
};
}