From 9d6b9ddac5cebd17a99c397389c4f836c1d175dd Mon Sep 17 00:00:00 2001 From: Alexander Nortung Date: Sat, 25 Dec 2021 11:26:04 +0100 Subject: nordzy-icon-theme: etc Using stdvenvNoCC. Patching away the call to gtk-update-icon-cache, thus there is no longer any need for gtk3. --- pkgs/data/icons/nordzy-icon-theme/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'pkgs/data/icons/nordzy-icon-theme') diff --git a/pkgs/data/icons/nordzy-icon-theme/default.nix b/pkgs/data/icons/nordzy-icon-theme/default.nix index 5c06b5c8767b4..13c8d154f88f9 100644 --- a/pkgs/data/icons/nordzy-icon-theme/default.nix +++ b/pkgs/data/icons/nordzy-icon-theme/default.nix @@ -1,4 +1,4 @@ -{ stdenv +{ stdenvNoCC , fetchFromGitHub , lib , bash @@ -10,7 +10,7 @@ let themes-arg-string = lib.strings.concatMapStrings (theme: "-t ${theme} ") nordzy-themes; in -stdenv.mkDerivation rec { +stdenvNoCC.mkDerivation { pname = "nordzy-icon-theme"; version = "unstable-2021-12-14"; @@ -21,10 +21,12 @@ stdenv.mkDerivation rec { sha256 = "Jqn5CF80xlYJ7H4qI1VEj91vcKPPoMXP5+sPs0ksiC4="; }; - nativeBuildInputs = [ gtk3 ]; - + # In the post patch phase we should fir st make sure to patch shebangs. + # We can also remove the gtk-update-icon-cache since the cache will later be built by the system. postPatch = '' patchShebangs install.sh + substituteInPlace install.sh \ + --replace "gtk-update-icon-cache" "#" ''; installPhase = '' @@ -33,7 +35,7 @@ stdenv.mkDerivation rec { mkdir -p $out/share/icons ./install.sh --dest $out/share/icons \ -n ${nordzy-theme-name} \ - -t ${themes-arg-string} + ${themes-arg-string} runHook postInstall ''; -- cgit 1.4.1