2019-12-11 16:34:41 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, sassc
|
|
|
|
, gtk3
|
2020-05-05 13:14:00 +02:00
|
|
|
, inkscape_0
|
2019-12-11 16:34:41 +01:00
|
|
|
, optipng
|
|
|
|
, gtk-engine-murrine
|
|
|
|
, gdk-pixbuf
|
|
|
|
, librsvg
|
2020-03-18 23:36:47 +01:00
|
|
|
, python3
|
2019-12-11 16:34:41 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pop-gtk-theme";
|
2020-07-31 10:59:50 +02:00
|
|
|
version = "2020-06-30";
|
2019-12-11 16:34:41 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pop-os";
|
|
|
|
repo = "gtk-theme";
|
2020-07-31 10:59:50 +02:00
|
|
|
rev = "8c31be9f9257375bf7a049069cb4ecbac7d281a1";
|
|
|
|
sha256 = "16dxxazpllcxlbiblynqq4b65wfn9k1jab8dl69l819v73z303ky";
|
2019-12-11 16:34:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
sassc
|
|
|
|
gtk3
|
2020-05-05 13:14:00 +02:00
|
|
|
inkscape_0
|
2019-12-11 16:34:41 +01:00
|
|
|
optipng
|
2020-03-18 23:36:47 +01:00
|
|
|
python3
|
2019-12-11 16:34:41 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gdk-pixbuf
|
|
|
|
librsvg
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedUserEnvPkgs = [
|
|
|
|
gtk-engine-murrine
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2020-03-18 23:36:47 +01:00
|
|
|
patchShebangs .
|
2019-12-11 16:34:41 +01:00
|
|
|
|
2020-03-18 23:36:47 +01:00
|
|
|
for file in $(find -name render-\*.sh); do
|
2019-12-11 16:34:41 +01:00
|
|
|
substituteInPlace "$file" \
|
|
|
|
--replace 'INKSCAPE="/usr/bin/inkscape"' \
|
2020-05-05 13:14:00 +02:00
|
|
|
'INKSCAPE="${inkscape_0}/bin/inkscape"' \
|
2019-12-11 16:34:41 +01:00
|
|
|
--replace 'OPTIPNG="/usr/bin/optipng"' \
|
2020-05-05 13:14:00 +02:00
|
|
|
'OPTIPNG="${optipng}/bin/optipng"'
|
2019-12-11 16:34:41 +01:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ elyhaka ];
|
|
|
|
};
|
|
|
|
}
|