2020-09-22 02:15:16 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
2020-09-22 02:58:35 +02:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, sassc
|
2020-09-22 02:15:16 +02:00
|
|
|
, gnome3
|
|
|
|
, gtk-engine-murrine
|
|
|
|
, gdk-pixbuf
|
|
|
|
, librsvg
|
|
|
|
}:
|
2016-08-03 11:28:54 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-02-05 21:03:33 +01:00
|
|
|
pname = "materia-theme";
|
2020-09-22 02:58:35 +02:00
|
|
|
version = "20200916";
|
2016-08-03 11:28:54 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nana-4";
|
2019-02-05 21:03:33 +01:00
|
|
|
repo = pname;
|
2017-04-18 18:41:10 +02:00
|
|
|
rev = "v${version}";
|
2020-09-22 02:58:35 +02:00
|
|
|
sha256 = "0qaxxafsn5zd2ysgr0jyv5j73360mfdmxyd55askswlsfphssn74";
|
2016-08-03 11:28:54 +02:00
|
|
|
};
|
|
|
|
|
2020-09-22 02:15:16 +02:00
|
|
|
nativeBuildInputs = [
|
2020-09-22 02:58:35 +02:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
sassc
|
2020-09-22 02:15:16 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gnome3.gnome-themes-extra
|
|
|
|
gdk-pixbuf
|
|
|
|
librsvg
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedUserEnvPkgs = [
|
|
|
|
gtk-engine-murrine
|
|
|
|
];
|
2016-12-09 21:51:47 +01:00
|
|
|
|
2016-08-03 11:28:54 +02:00
|
|
|
dontBuild = true;
|
|
|
|
|
2020-09-22 02:58:35 +02:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dgnome_shell_version=${stdenv.lib.versions.majorMinor gnome3.gnome-shell.version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
2016-12-09 21:51:47 +01:00
|
|
|
rm $out/share/themes/*/COPYING
|
2016-08-03 11:28:54 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-09-04 00:49:40 +02:00
|
|
|
description = "Material Design theme for GNOME/GTK based desktop environments";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/nana-4/materia-theme";
|
2020-09-22 02:58:35 +02:00
|
|
|
license = licenses.gpl2Only;
|
2016-08-03 11:28:54 +02:00
|
|
|
platforms = platforms.all;
|
2016-12-09 21:51:47 +01:00
|
|
|
maintainers = [ maintainers.mounium ];
|
2016-08-03 11:28:54 +02:00
|
|
|
};
|
|
|
|
}
|