zoxide: 0.9.6 -> 0.9.7 (#380745)
[NixPkgs.git] / pkgs / by-name / mo / moka-icon-theme / package.nix
blob9b03e14793387a623cd55557c094be8a1c7e8d78
2   lib,
3   stdenvNoCC,
4   fetchFromGitHub,
5   meson,
6   ninja,
7   gtk3,
8   python3,
9   faba-icon-theme,
10   hicolor-icon-theme,
11   jdupes,
14 stdenvNoCC.mkDerivation rec {
15   pname = "moka-icon-theme";
16   version = "unstable-2019-05-29";
18   src = fetchFromGitHub {
19     owner = "snwh";
20     repo = pname;
21     rev = "c0355ea31e5cfdb6b44d8108f602d66817546a09";
22     sha256 = "0m4kfarkl94wdhsds2q1l9x5hfa9l3117l8j6j7qm7sf7yzr90c8";
23   };
25   nativeBuildInputs = [
26     meson
27     ninja
28     gtk3
29     python3
30     jdupes
31   ];
33   propagatedBuildInputs = [
34     faba-icon-theme
35     hicolor-icon-theme
36   ];
38   dontDropIconThemeCache = true;
40   # These fixup steps are slow and unnecessary for this package
41   dontPatchELF = true;
42   dontRewriteSymlinks = true;
44   postPatch = ''
45     patchShebangs meson/post_install.py
46   '';
48   postInstall = ''
49     # replace duplicate files with symlinks
50     jdupes -l -r $out/share/icons
51   '';
53   meta = with lib; {
54     description = "Icon theme designed with a minimal flat style using simple geometry and bright colours";
55     homepage = "https://snwh.org/moka";
56     license = with licenses; [
57       cc-by-sa-40
58       gpl3Only
59     ];
60     # darwin cannot deal with file names differing only in case
61     platforms = platforms.linux;
62     maintainers = with maintainers; [ romildo ];
63   };