{ungoogled-,}chromium,chromedriver: 130.0.6723.58 -> 130.0.6723.69 (#351519)
[NixPkgs.git] / pkgs / data / themes / pop-gtk / default.nix
blobdd4c0281fa8668a61fcbc17cbd6d915478e27aae
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , meson
5 , ninja
6 , sassc
7 , gtk3
8 , inkscape
9 , optipng
10 , gtk-engine-murrine
11 , gdk-pixbuf
12 , librsvg
13 , python3
16 stdenv.mkDerivation rec {
17   pname = "pop-gtk-theme";
18   version = "2021-08-19";
20   src = fetchFromGitHub {
21     owner = "pop-os";
22     repo = "gtk-theme";
23     rev = "6615e4510485c5dc0b379746acc40f538d987c86";
24     sha256 = "16h03x2m4j4hfwp7pdmw1navcy5q7di38jvigfgf263wajyxbznr";
25   };
27   nativeBuildInputs = [
28     meson
29     ninja
30     sassc
31     gtk3
32     inkscape
33     optipng
34     python3
35   ];
37   buildInputs = [
38     gdk-pixbuf
39     librsvg
40   ];
42   propagatedUserEnvPkgs = [
43     gtk-engine-murrine
44   ];
46   postPatch = ''
47     patchShebangs .
49     for file in $(find -name render-\*.sh); do
50       substituteInPlace "$file" \
51         --replace 'INKSCAPE="/usr/bin/inkscape"' \
52                   'INKSCAPE="${inkscape}/bin/inkscape"' \
53         --replace 'OPTIPNG="/usr/bin/optipng"' \
54                   'OPTIPNG="${optipng}/bin/optipng"'
55     done
56   '';
58   meta = with lib; {
59     description = "System76 Pop GTK+ Theme";
60     homepage = "https://github.com/pop-os/gtk-theme";
61     license = with licenses; [ gpl3 lgpl21 cc-by-sa-40 ];
62     platforms = platforms.linux;
63     maintainers = [ ];
64   };