2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-10-07 09:15:18 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, sassc
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-10-07 09:15:18 +00:00
|
|
|
, gtk-engine-murrine
|
|
|
|
, gdk-pixbuf
|
|
|
|
, librsvg
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "materia-theme";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "20210322";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nana-4";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "1fsicmcni70jkl4jb3fvh7yv0v9jhb8nwjzdq8vfwn256qyk0xvl";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [ meson ninja sassc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
buildInputs = [ gnome.gnome-themes-extra gdk-pixbuf librsvg ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
mesonFlags = [
|
2021-05-20 23:08:51 +00:00
|
|
|
"-Dgnome_shell_version=${lib.versions.majorMinor gnome.gnome-shell.version}"
|
2020-10-07 09:15:18 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
rm $out/share/themes/*/COPYING
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Material Design theme for GNOME/GTK based desktop environments";
|
|
|
|
homepage = "https://github.com/nana-4/materia-theme";
|
2020-10-07 09:15:18 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.mounium ];
|
|
|
|
};
|
|
|
|
}
|