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

57 lines
1,016 B
Nix
Raw Normal View History

{ lib, stdenv
2020-09-22 02:15:16 +02:00
, fetchFromGitHub
2020-09-22 02:58:35 +02:00
, meson
, ninja
, sassc
, 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 = [
gnome.gnome-themes-extra
2020-09-22 02:15:16 +02:00
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=${lib.versions.majorMinor gnome.gnome-shell.version}"
2020-09-22 02:58:35 +02:00
];
postInstall = ''
rm $out/share/themes/*/COPYING
2016-08-03 11:28:54 +02: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 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
};
}