1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/pkgs/data/themes/pop-gtk/default.nix

66 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, stdenv
2019-12-11 10:34:41 -05:00
, fetchFromGitHub
, meson
, ninja
, sassc
, gtk3
, inkscape
2019-12-11 10:34:41 -05:00
, optipng
, gtk-engine-murrine
, gdk-pixbuf
, librsvg
, python3
2019-12-11 10:34:41 -05:00
}:
stdenv.mkDerivation rec {
pname = "pop-gtk-theme";
version = "2021-08-19";
2019-12-11 10:34:41 -05:00
src = fetchFromGitHub {
owner = "pop-os";
repo = "gtk-theme";
rev = "6615e4510485c5dc0b379746acc40f538d987c86";
sha256 = "16h03x2m4j4hfwp7pdmw1navcy5q7di38jvigfgf263wajyxbznr";
2019-12-11 10:34:41 -05:00
};
nativeBuildInputs = [
meson
ninja
sassc
gtk3
inkscape
2019-12-11 10:34:41 -05:00
optipng
python3
2019-12-11 10:34:41 -05:00
];
buildInputs = [
gdk-pixbuf
librsvg
];
propagatedUserEnvPkgs = [
gtk-engine-murrine
];
postPatch = ''
patchShebangs .
2019-12-11 10:34:41 -05:00
for file in $(find -name render-\*.sh); do
2019-12-11 10:34:41 -05:00
substituteInPlace "$file" \
--replace 'INKSCAPE="/usr/bin/inkscape"' \
'INKSCAPE="${inkscape}/bin/inkscape"' \
2019-12-11 10:34:41 -05:00
--replace 'OPTIPNG="/usr/bin/optipng"' \
'OPTIPNG="${optipng}/bin/optipng"'
2019-12-11 10:34:41 -05:00
done
'';
meta = with lib; {
2019-12-11 10:34:41 -05: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;
maintainers = with maintainers; [ elyhaka ];
};
}