2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2020-09-22 02:15:16 +02:00
|
|
|
, fetchFromGitHub
|
2020-09-22 02:58:35 +02:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, sassc
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2020-09-22 02:15:16 +02:00
|
|
|
, 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 = [
|
2021-05-07 23:18:14 +02:00
|
|
|
gnome.gnome-themes-extra
|
2020-09-22 02:15:16 +02:00
|
|
|
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 = [
|
2021-05-07 23:18:14 +02:00
|
|
|
"-Dgnome_shell_version=${lib.versions.majorMinor gnome.gnome-shell.version}"
|
2020-09-22 02:58:35 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
2016-12-09 21:51:47 +01:00
|
|
|
rm $out/share/themes/*/COPYING
|
2016-08-03 11:28:54 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with 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
|
|
|
};
|
|
|
|
}
|