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