3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/themes/materia-theme/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
983 B
Nix
Raw Normal View History

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
, 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-08-03 10:28:54 +01:00
dontBuild = true;
2020-09-22 01:58:35 +01:00
mesonFlags = [
"-Dgnome_shell_version=${lib.versions.majorMinor gnome.gnome-shell.version}"
2020-09-22 01:58:35 +01:00
];
postInstall = ''
rm $out/share/themes/*/COPYING
2016-08-03 10:28:54 +01:00
'';
meta = with lib; {
description = "Material Design theme for GNOME/GTK based desktop environments";
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;
maintainers = [ maintainers.mounium ];
2016-08-03 10:28:54 +01:00
};
}