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