nixpkgs/pkgs/misc/themes/flat-plat/default.nix

37 lines
1,012 B
Nix
Raw Normal View History

2017-04-18 18:41:10 +02:00
{ stdenv, fetchFromGitHub, gnome3, libxml2, gtk-engine-murrine, gdk_pixbuf, librsvg }:
2016-08-03 11:28:54 +02:00
stdenv.mkDerivation rec {
name = "flat-plat-gtk-theme-${version}";
2017-05-17 00:35:21 +02:00
version = "20170515";
2016-08-03 11:28:54 +02:00
src = fetchFromGitHub {
owner = "nana-4";
repo = "Flat-Plat";
2017-04-18 18:41:10 +02:00
rev = "v${version}";
2017-05-17 00:35:21 +02:00
sha256 = "0z0l9ch6symcjhbfkj1q5i46ajbn7l7slhjgrcjm0ppqh05xc4y7";
2016-08-03 11:28:54 +02:00
};
nativeBuildInputs = [ gnome3.glib libxml2 ];
2017-04-18 18:41:10 +02:00
buildInputs = [ gnome3.gnome_themes_standard gtk-engine-murrine gdk_pixbuf librsvg ];
2016-08-03 11:28:54 +02:00
dontBuild = true;
installPhase = ''
2017-04-18 18:41:10 +02:00
patchShebangs install.sh
sed -i install.sh \
-e "s|^gnomever=.*$|gnomever=${gnome3.version}|" \
-e "s|/usr||"
destdir="$out" ./install.sh
rm $out/share/themes/*/COPYING
2016-08-03 11:28:54 +02:00
'';
meta = with stdenv.lib; {
description = "A Material Design-like theme for GTK+ based desktop environments";
2016-08-03 11:28:54 +02:00
homepage = https://github.com/nana-4/Flat-Plat;
license = licenses.gpl2;
2016-08-03 11:28:54 +02:00
platforms = platforms.all;
maintainers = [ maintainers.mounium ];
2016-08-03 11:28:54 +02:00
};
}