diff options
author | worldofpeace <worldofpeace@protonmail.ch> | 2019-12-19 18:24:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-19 18:24:08 -0500 |
commit | 83bfedb38bbc270854d957fa2f6d3cfd95f4b9d0 (patch) | |
tree | 9eced601139865956af3188a0e59e47d99e067eb /pkgs/data | |
parent | 2783a1025a92708bdc769678a835ad66c0f9d03c (diff) | |
parent | 79850f5df83622a3e5f60a34e7178a52e4cae539 (diff) | |
download | nixpkgs-83bfedb38bbc270854d957fa2f6d3cfd95f4b9d0.tar nixpkgs-83bfedb38bbc270854d957fa2f6d3cfd95f4b9d0.tar.gz nixpkgs-83bfedb38bbc270854d957fa2f6d3cfd95f4b9d0.tar.bz2 nixpkgs-83bfedb38bbc270854d957fa2f6d3cfd95f4b9d0.tar.lz nixpkgs-83bfedb38bbc270854d957fa2f6d3cfd95f4b9d0.tar.xz nixpkgs-83bfedb38bbc270854d957fa2f6d3cfd95f4b9d0.tar.zst nixpkgs-83bfedb38bbc270854d957fa2f6d3cfd95f4b9d0.zip |
Merge pull request #75494 from Elyhaka/pop_gtk_theme
pop-gtk-theme: init at 2019-11-13
Diffstat (limited to 'pkgs/data')
-rw-r--r-- | pkgs/data/themes/pop-gtk/default.nix | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/pkgs/data/themes/pop-gtk/default.nix b/pkgs/data/themes/pop-gtk/default.nix new file mode 100644 index 00000000000..151fadddc16 --- /dev/null +++ b/pkgs/data/themes/pop-gtk/default.nix @@ -0,0 +1,62 @@ +{ stdenv +, fetchFromGitHub +, meson +, ninja +, sassc +, gtk3 +, inkscape +, optipng +, gtk-engine-murrine +, gdk-pixbuf +, librsvg +}: + +stdenv.mkDerivation rec { + pname = "pop-gtk-theme"; + version = "2019-12-17"; + + src = fetchFromGitHub { + owner = "pop-os"; + repo = "gtk-theme"; + rev = "77601545f049251bce9c63a07f0d9819aa27cb60"; + sha256 = "0bmkcdr1z9m3inrw33zprq2a4jawql4724a84nr89r19xllj2z1s"; + }; + + 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 ]; + }; +} |