python312Packages.icontract: relax deps (#380554)
[NixPkgs.git] / pkgs / by-name / po / pop-gtk-theme / package.nix
blobb8e34f536fab951eea1e9d6041e14b3b6167d013
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   meson,
6   ninja,
7   sassc,
8   gtk3,
9   inkscape,
10   optipng,
11   gtk-engine-murrine,
12   gdk-pixbuf,
13   librsvg,
14   python3,
17 stdenv.mkDerivation rec {
18   pname = "pop-gtk-theme";
19   version = "2021-08-19";
21   src = fetchFromGitHub {
22     owner = "pop-os";
23     repo = "gtk-theme";
24     rev = "6615e4510485c5dc0b379746acc40f538d987c86";
25     sha256 = "16h03x2m4j4hfwp7pdmw1navcy5q7di38jvigfgf263wajyxbznr";
26   };
28   nativeBuildInputs = [
29     meson
30     ninja
31     sassc
32     gtk3
33     inkscape
34     optipng
35     python3
36   ];
38   buildInputs = [
39     gdk-pixbuf
40     librsvg
41   ];
43   propagatedUserEnvPkgs = [
44     gtk-engine-murrine
45   ];
47   postPatch = ''
48     patchShebangs .
50     for file in $(find -name render-\*.sh); do
51       substituteInPlace "$file" \
52         --replace 'INKSCAPE="/usr/bin/inkscape"' \
53                   'INKSCAPE="${inkscape}/bin/inkscape"' \
54         --replace 'OPTIPNG="/usr/bin/optipng"' \
55                   'OPTIPNG="${optipng}/bin/optipng"'
56     done
57   '';
59   meta = with lib; {
60     description = "System76 Pop GTK+ Theme";
61     homepage = "https://github.com/pop-os/gtk-theme";
62     license = with licenses; [
63       gpl3
64       lgpl21
65       cc-by-sa-40
66     ];
67     platforms = platforms.linux;
68     maintainers = [ ];
69   };