nixpkgs/pkgs/data/icons/nordzy-icon-theme/default.nix

57 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenvNoCC
, fetchFromGitHub
, lib
, gtk3
, nordzy-theme-name ? "Nordzy"
, nordzy-themes ? [ "all" ] # Override this to only install selected themes
}:
let
themes-arg-string = lib.strings.concatMapStrings (theme: "-t ${theme} ") nordzy-themes;
in
stdenvNoCC.mkDerivation {
pname = "nordzy-icon-theme";
version = "unstable-2021-12-14";
src = fetchFromGitHub {
owner = "alvatip";
repo = "Nordzy-icon";
rev = "5c247a4f19cf9849615631d1bf77727b945b634e";
sha256 = "Jqn5CF80xlYJ7H4qI1VEj91vcKPPoMXP5+sPs0ksiC4=";
};
# In the post patch phase we should first make sure to patch shebangs.
postPatch = ''
patchShebangs install.sh
'';
nativeBuildInputs = [
gtk3
];
dontDropIconThemeCache = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/icons
./install.sh --dest $out/share/icons \
-n ${nordzy-theme-name} \
${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.linux;
maintainers = with maintainers; [
alexnortung
];
};
}