2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-10-07 09:15:18 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, sassc
|
|
|
|
, gnome3
|
|
|
|
, gtk-engine-murrine
|
|
|
|
, gdk-pixbuf
|
|
|
|
, librsvg
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "materia-theme";
|
2020-10-07 09:15:18 +00:00
|
|
|
version = "20200916";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nana-4";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-10-07 09:15:18 +00:00
|
|
|
sha256 = "0qaxxafsn5zd2ysgr0jyv5j73360mfdmxyd55askswlsfphssn74";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
sassc
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
buildInputs = [
|
|
|
|
gnome3.gnome-themes-extra
|
|
|
|
gdk-pixbuf
|
|
|
|
librsvg
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-07 09:15:18 +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-01-15 22:18:51 +00:00
|
|
|
"-Dgnome_shell_version=${lib.versions.majorMinor gnome3.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 ];
|
|
|
|
};
|
|
|
|
}
|