2017-04-18 17:41:10 +01:00
|
|
|
{ stdenv, fetchFromGitHub, gnome3, libxml2, gtk-engine-murrine, gdk_pixbuf, librsvg }:
|
2016-08-03 10:28:54 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-10-07 01:49:05 +01:00
|
|
|
name = "materia-theme-${version}";
|
2017-12-19 10:54:45 +00:00
|
|
|
version = "20171213";
|
2016-08-03 10:28:54 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nana-4";
|
2017-10-07 01:49:05 +01:00
|
|
|
repo = "materia-theme";
|
2017-04-18 17:41:10 +01:00
|
|
|
rev = "v${version}";
|
2017-12-19 10:54:45 +00:00
|
|
|
sha256 = "1dn458r8ca97xz4pqyxy2rqigs97dg3k868l4yvlsdy732mspm0h";
|
2016-08-03 10:28:54 +01:00
|
|
|
};
|
|
|
|
|
2016-12-10 09:11:30 +00:00
|
|
|
nativeBuildInputs = [ gnome3.glib libxml2 ];
|
2016-12-09 20:51:47 +00:00
|
|
|
|
2017-12-19 22:08:29 +00:00
|
|
|
buildInputs = [ gnome3.gnome_themes_standard gdk_pixbuf librsvg ];
|
|
|
|
|
|
|
|
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
|
2016-12-09 20:51:47 +00:00
|
|
|
|
2016-08-03 10:28:54 +01:00
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
2017-04-18 17:41:10 +01:00
|
|
|
patchShebangs install.sh
|
2016-12-10 09:11:30 +00:00
|
|
|
sed -i install.sh \
|
|
|
|
-e "s|^gnomever=.*$|gnomever=${gnome3.version}|" \
|
|
|
|
-e "s|/usr||"
|
2016-12-09 20:51:47 +00:00
|
|
|
destdir="$out" ./install.sh
|
|
|
|
rm $out/share/themes/*/COPYING
|
2016-08-03 10:28:54 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-12-19 10:54:45 +00:00
|
|
|
description = "A Material Design theme for GNOME/GTK+ based desktop environments (formerly Flat-Plat)";
|
2017-10-07 01:49:05 +01:00
|
|
|
homepage = https://github.com/nana-4/materia-theme;
|
2016-09-19 11:52:22 +01:00
|
|
|
license = licenses.gpl2;
|
2016-08-03 10:28:54 +01:00
|
|
|
platforms = platforms.all;
|
2016-12-09 20:51:47 +00:00
|
|
|
maintainers = [ maintainers.mounium ];
|
2016-08-03 10:28:54 +01:00
|
|
|
};
|
|
|
|
}
|