2016-12-09 23:51:47 +03:00
|
|
|
{ stdenv, fetchFromGitHub, gnome3, libxml2, gtk-engine-murrine }:
|
2016-08-03 12:28:54 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-12-09 23:51:47 +03:00
|
|
|
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";
|
2016-12-09 23:51:47 +03:00
|
|
|
rev = "49a5a51ec1a5835ff04ba2c62c9bccbd3f49bbe6";
|
|
|
|
sha256 = "1w4b16cp2yv5rpijcqywlzrs3xjkvg8ppp2rfls1kvxq12rz4jkb";
|
2016-08-03 12:28:54 +03:00
|
|
|
};
|
|
|
|
|
2016-12-10 12:11:30 +03:00
|
|
|
nativeBuildInputs = [ gnome3.glib libxml2 ];
|
2016-12-09 23:51:47 +03:00
|
|
|
|
|
|
|
buildInputs = [ gnome3.gnome_themes_standard gtk-engine-murrine ];
|
|
|
|
|
2016-08-03 12:28:54 +03:00
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
2016-12-10 12:11:30 +03:00
|
|
|
sed -i install.sh \
|
|
|
|
-e "s|^gnomever=.*$|gnomever=${gnome3.version}|" \
|
|
|
|
-e "s|/usr||"
|
2016-12-09 23:51:47 +03:00
|
|
|
destdir="$out" ./install.sh
|
|
|
|
rm $out/share/themes/*/COPYING
|
2016-08-03 12:28:54 +03:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-12-09 23:51:47 +03:00
|
|
|
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;
|
2016-09-19 13:52:22 +03:00
|
|
|
license = licenses.gpl2;
|
2016-08-03 12:28:54 +03:00
|
|
|
platforms = platforms.all;
|
2016-12-09 23:51:47 +03:00
|
|
|
maintainers = [ maintainers.mounium ];
|
2016-08-03 12:28:54 +03:00
|
|
|
};
|
|
|
|
}
|