2019-12-11 16:34:41 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, sassc
|
|
|
|
, gtk3
|
|
|
|
, inkscape
|
|
|
|
, optipng
|
|
|
|
, gtk-engine-murrine
|
|
|
|
, gdk-pixbuf
|
|
|
|
, librsvg
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pop-gtk-theme";
|
2020-02-11 08:08:36 +01:00
|
|
|
version = "2020-02-10";
|
2019-12-11 16:34:41 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pop-os";
|
|
|
|
repo = "gtk-theme";
|
2020-02-11 08:08:36 +01:00
|
|
|
rev = "ed888e9dd5de142cb899e362beedaf694594cc7e";
|
|
|
|
sha256 = "0ryr1jx9pzij6pkv7sam07f90w5lbrzx0fj5vdxl94612mh76aad";
|
2019-12-11 16:34:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
sassc
|
|
|
|
gtk3
|
|
|
|
inkscape
|
|
|
|
optipng
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gdk-pixbuf
|
|
|
|
librsvg
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedUserEnvPkgs = [
|
|
|
|
gtk-engine-murrine
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
for file in $(find -name render-\*.sh); do
|
|
|
|
patchShebangs "$file"
|
|
|
|
|
|
|
|
substituteInPlace "$file" \
|
|
|
|
--replace 'INKSCAPE="/usr/bin/inkscape"' \
|
|
|
|
'INKSCAPE="inkscape"' \
|
|
|
|
--replace 'OPTIPNG="/usr/bin/optipng"' \
|
|
|
|
'OPTIPNG="optipng"'
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|