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

36 lines
974 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, gnome3, libxml2, gtk-engine-murrine }:
2016-08-03 12:28:54 +03:00
stdenv.mkDerivation rec {
name = "flat-plat-gtk-theme-${version}";
version = "2016-12-03";
2016-08-03 12:28:54 +03:00
src = fetchFromGitHub {
owner = "nana-4";
repo = "Flat-Plat";
rev = "49a5a51ec1a5835ff04ba2c62c9bccbd3f49bbe6";
sha256 = "1w4b16cp2yv5rpijcqywlzrs3xjkvg8ppp2rfls1kvxq12rz4jkb";
2016-08-03 12:28:54 +03:00
};
nativeBuildInputs = [ gnome3.glib libxml2 ];
buildInputs = [ gnome3.gnome_themes_standard gtk-engine-murrine ];
2016-08-03 12:28:54 +03:00
dontBuild = true;
installPhase = ''
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 12:28:54 +03:00
'';
meta = with stdenv.lib; {
description = "A Material Design-like theme for GTK+ based desktop environments";
2016-08-03 12:28:54 +03:00
homepage = https://github.com/nana-4/Flat-Plat;
license = licenses.gpl2;
2016-08-03 12:28:54 +03:00
platforms = platforms.all;
maintainers = [ maintainers.mounium ];
2016-08-03 12:28:54 +03:00
};
}