summary refs log tree commit diff
path: root/pkgs/data/icons/nordzy-icon-theme/default.nix
diff options
context:
space:
mode:
authorAlexander Nortung <alex_nortung@live.dk>2021-12-13 00:17:01 +0100
committerAlexander Nortung <alex_nortung@live.dk>2021-12-14 12:19:42 +0100
commit3daa5df0d9ec7eccede4a82c8c60bf76a931241a (patch)
treeeeb318baefa86e976daa4b95a6a26202649ce027 /pkgs/data/icons/nordzy-icon-theme/default.nix
parentbf2ed226735fc51634d9b3b147deb62e6a8e31a6 (diff)
downloadnixpkgs-3daa5df0d9ec7eccede4a82c8c60bf76a931241a.tar
nixpkgs-3daa5df0d9ec7eccede4a82c8c60bf76a931241a.tar.gz
nixpkgs-3daa5df0d9ec7eccede4a82c8c60bf76a931241a.tar.bz2
nixpkgs-3daa5df0d9ec7eccede4a82c8c60bf76a931241a.tar.lz
nixpkgs-3daa5df0d9ec7eccede4a82c8c60bf76a931241a.tar.xz
nixpkgs-3daa5df0d9ec7eccede4a82c8c60bf76a931241a.tar.zst
nixpkgs-3daa5df0d9ec7eccede4a82c8c60bf76a931241a.zip
nordzy-icon-theme: init at unstable-2021-12-14
nordzy-icon-theme: init at 5c247a4f19cf9849615631d1bf77727b945b634e

nordzy-icon-theme: etc

Fixed adding multiple themes

nordzy-icon-theme: init at unstable-2021-12-14
Diffstat (limited to 'pkgs/data/icons/nordzy-icon-theme/default.nix')
-rw-r--r--pkgs/data/icons/nordzy-icon-theme/default.nix52
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/data/icons/nordzy-icon-theme/default.nix b/pkgs/data/icons/nordzy-icon-theme/default.nix
new file mode 100644
index 00000000000..97575eedb1d
--- /dev/null
+++ b/pkgs/data/icons/nordzy-icon-theme/default.nix
@@ -0,0 +1,52 @@
+{ stdenv
+, fetchFromGitHub
+, lib
+, bash
+, gtk3
+, nordzy-themes ? [ "all" ] # Override this to only install selected themes
+}:
+
+let
+  themes-arg-string = lib.strings.concatMapStrings (theme: "-t ${theme} ") nordzy-themes;
+in
+stdenv.mkDerivation rec {
+  pname = "nordzy-icon-theme";
+  version = "unstable-2021-12-14";
+
+  src = fetchFromGitHub {
+    owner = "alvatip";
+    repo = "Nordzy-icon";
+    rev = "5c247a4f19cf9849615631d1bf77727b945b634e";
+    sha256 = "Jqn5CF80xlYJ7H4qI1VEj91vcKPPoMXP5+sPs0ksiC4=";
+  };
+
+  nativeBuildInputs = [ gtk3 ];
+
+  postPatch = ''
+    substituteInPlace install.sh \
+      --replace /bin/bash ${bash}/bin/bash
+  '';
+
+  installPhase = ''
+    runHook preInstall
+
+    mkdir -p $out/share/icons
+    ./install.sh --dest $out/share/icons \
+      -n Nordzy \
+      -t ${themes-arg-string}
+
+    runHook postInstall
+  '';
+
+  dontFixup = true;
+
+  meta = with lib; {
+    description = "A free and open source icon theme using the Nord color palette and based on WhiteSur and Numix Icon Theme";
+    homepage = "https://github.com/alvatip/Nordzy-icon";
+    license = licenses.gpl3;
+    platforms = platforms.all;
+    maintainers = with maintainers; [
+      alexnortung
+    ];
+  };
+}