nixpkgs/pkgs/data/themes/materia-theme/default.nix

57 lines
1 KiB
Nix
Raw Normal View History

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-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 = ''
rm $out/share/themes/*/COPYING
2016-08-03 11:28:54 +02:00
'';
meta = with stdenv.lib; {
description = "Material Design theme for GNOME/GTK based desktop environments";
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;
maintainers = [ maintainers.mounium ];
2016-08-03 11:28:54 +02:00
};
}