diff options
author | legendofmiracles <30902201+legendofmiracles@users.noreply.github.com> | 2022-01-24 09:58:38 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-24 09:58:38 -0600 |
commit | fad04722fc3d692e3511e58e337ec9fa627f5ba5 (patch) | |
tree | fc6c601e20c9674623ce0c8e0cfbb3203c8e93e9 /pkgs/data/icons | |
parent | 92c3a41c428fe2f8d20c7674938dce90b4276db1 (diff) | |
parent | c423629183792da33e61c0f4ab9df4f2b77f2825 (diff) | |
download | nixpkgs-fad04722fc3d692e3511e58e337ec9fa627f5ba5.tar nixpkgs-fad04722fc3d692e3511e58e337ec9fa627f5ba5.tar.gz nixpkgs-fad04722fc3d692e3511e58e337ec9fa627f5ba5.tar.bz2 nixpkgs-fad04722fc3d692e3511e58e337ec9fa627f5ba5.tar.lz nixpkgs-fad04722fc3d692e3511e58e337ec9fa627f5ba5.tar.xz nixpkgs-fad04722fc3d692e3511e58e337ec9fa627f5ba5.tar.zst nixpkgs-fad04722fc3d692e3511e58e337ec9fa627f5ba5.zip |
Merge pull request #150488 from Alexnortung/nordzy-icon-theme
nordzy-icon-theme: init at unstable-2021-12-14
Diffstat (limited to 'pkgs/data/icons')
-rw-r--r-- | pkgs/data/icons/nordzy-icon-theme/default.nix | 54 |
1 files changed, 54 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..11113bb6a50 --- /dev/null +++ b/pkgs/data/icons/nordzy-icon-theme/default.nix @@ -0,0 +1,54 @@ +{ stdenvNoCC +, fetchFromGitHub +, lib +, gtk3 +, jdupes +, nordzy-themes ? [ "all" ] # Override this to only install selected themes +}: + +stdenvNoCC.mkDerivation { + pname = "nordzy-icon-theme"; + version = "unstable-2022-01-23"; + + src = fetchFromGitHub { + owner = "alvatip"; + repo = "Nordzy-icon"; + rev = "10b9ee80ef5c4cac1d1770d89a6d55046521ea36"; + sha256 = "1b8abhs5gzr2qy407jq818pr67vjky8zn3pa3c8n552ayybblibk"; + }; + + # In the post patch phase we should first make sure to patch shebangs. + postPatch = '' + patchShebangs install.sh + ''; + + nativeBuildInputs = [ + gtk3 + jdupes + ]; + + dontDropIconThemeCache = true; + + installPhase = '' + runHook preInstall + + name= ./install.sh --dest $out/share/icons \ + ${lib.optionalString (nordzy-themes != []) (lib.strings.concatMapStrings (theme: "-t ${theme} ") nordzy-themes)} + + # Replace duplicate files with hardlinks to the first file in each + # set of duplicates, reducing the installed size in about 87% + jdupes -L -r $out/share + + runHook postInstall + ''; + + dontFixup = true; + + meta = with lib; { + description = "Icon theme using the Nord color palette, based on WhiteSur and Numix icon themes"; + homepage = "https://github.com/alvatip/Nordzy-icon"; + license = licenses.gpl3Only; + platforms = platforms.linux; + maintainers = with maintainers; [ alexnortung ]; + }; +} |