2021-12-02 03:56:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2019-12-11 15:34:41 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, sassc
|
|
|
|
, gtk3
|
2020-09-10 18:38:25 +00:00
|
|
|
, inkscape
|
2019-12-11 15:34:41 +00:00
|
|
|
, optipng
|
|
|
|
, gtk-engine-murrine
|
|
|
|
, gdk-pixbuf
|
|
|
|
, librsvg
|
2020-03-18 22:36:47 +00:00
|
|
|
, python3
|
2019-12-11 15:34:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pop-gtk-theme";
|
2021-12-02 03:56:08 +00:00
|
|
|
version = "2021-08-19";
|
2019-12-11 15:34:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pop-os";
|
|
|
|
repo = "gtk-theme";
|
2021-12-02 03:56:08 +00:00
|
|
|
rev = "6615e4510485c5dc0b379746acc40f538d987c86";
|
|
|
|
sha256 = "16h03x2m4j4hfwp7pdmw1navcy5q7di38jvigfgf263wajyxbznr";
|
2019-12-11 15:34:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
sassc
|
|
|
|
gtk3
|
2020-09-10 18:38:25 +00:00
|
|
|
inkscape
|
2019-12-11 15:34:41 +00:00
|
|
|
optipng
|
2020-03-18 22:36:47 +00:00
|
|
|
python3
|
2019-12-11 15:34:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gdk-pixbuf
|
|
|
|
librsvg
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedUserEnvPkgs = [
|
|
|
|
gtk-engine-murrine
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2020-03-18 22:36:47 +00:00
|
|
|
patchShebangs .
|
2019-12-11 15:34:41 +00:00
|
|
|
|
2020-03-18 22:36:47 +00:00
|
|
|
for file in $(find -name render-\*.sh); do
|
2019-12-11 15:34:41 +00:00
|
|
|
substituteInPlace "$file" \
|
|
|
|
--replace 'INKSCAPE="/usr/bin/inkscape"' \
|
2020-09-10 18:38:25 +00:00
|
|
|
'INKSCAPE="${inkscape}/bin/inkscape"' \
|
2019-12-11 15:34:41 +00:00
|
|
|
--replace 'OPTIPNG="/usr/bin/optipng"' \
|
2020-05-05 11:14:00 +00:00
|
|
|
'OPTIPNG="${optipng}/bin/optipng"'
|
2019-12-11 15:34:41 +00:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-12-11 15:34:41 +00:00
|
|
|
description = "System76 Pop GTK+ Theme";
|
|
|
|
homepage = "https://github.com/pop-os/gtk-theme";
|
|
|
|
license = with licenses; [ gpl3 lgpl21 cc-by-sa-40 ];
|
|
|
|
platforms = platforms.linux;
|
2022-06-22 22:58:42 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2019-12-11 15:34:41 +00:00
|
|
|
};
|
|
|
|
}
|