From 6a5f37bbed19b2b14e8750525e58f4964678ae47 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Fri, 3 Nov 2023 22:52:18 +0800 Subject: [PATCH] overlays: patch ydict --- nixos/packages/overlays/default.nix | 1 + nixos/packages/overlays/ydict.nix | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 nixos/packages/overlays/ydict.nix diff --git a/nixos/packages/overlays/default.nix b/nixos/packages/overlays/default.nix index 7fc7ef3..6aff767 100644 --- a/nixos/packages/overlays/default.nix +++ b/nixos/packages/overlays/default.nix @@ -5,5 +5,6 @@ ./nautilus.nix ./sway.nix ./prismlauncher.nix + ./ydict.nix ]; } \ No newline at end of file diff --git a/nixos/packages/overlays/ydict.nix b/nixos/packages/overlays/ydict.nix new file mode 100644 index 0000000..deb9797 --- /dev/null +++ b/nixos/packages/overlays/ydict.nix @@ -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="; + }) + ]; + }); + } + ) + ]; + }; +} \ No newline at end of file