evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / no / nordzy-icon-theme / package.nix
blob3aedf3b2c93ff7efd8c74b2ac705d78d9310b7f8
1 { stdenvNoCC
2 , fetchFromGitHub
3 , lib
4 , gtk3
5 , jdupes
6 , nordzy-themes ? [ "all" ] # Override this to only install selected themes
7 }:
9 stdenvNoCC.mkDerivation rec {
10   pname = "nordzy-icon-theme";
11   version = "1.8.7";
13   src = fetchFromGitHub {
14     owner = "alvatip";
15     repo = "Nordzy-icon";
16     rev = version;
17     sha256 = "sha256-r/WYGcHRAFX7TennestobjcJhwu3GE8aQXxnaeokQM0=";
18   };
20   # In the post patch phase we should first make sure to patch shebangs.
21   postPatch = ''
22     patchShebangs install.sh
23   '';
25   nativeBuildInputs = [
26     gtk3
27     jdupes
28   ];
30   dontDropIconThemeCache = true;
32   installPhase = ''
33     runHook preInstall
35     name= ./install.sh --dest $out/share/icons \
36       ${lib.optionalString (nordzy-themes != []) (lib.strings.concatMapStrings (theme: "-t ${theme} ") nordzy-themes)}
38     # Replace duplicate files with hardlinks to the first file in each
39     # set of duplicates, reducing the installed size in about 87%
40     jdupes -L -r $out/share
42     runHook postInstall
43   '';
45   dontFixup = true;
47   meta = with lib; {
48     description = "Icon theme using the Nord color palette, based on WhiteSur and Numix icon themes";
49     homepage = "https://github.com/alvatip/Nordzy-icon";
50     license = licenses.gpl3Only;
51     platforms = platforms.linux;
52     maintainers = with maintainers; [ alexnortung ];
53   };