nixpkgs/pkgs/desktops/mate/mate-themes/default.nix

35 lines
1.1 KiB
Nix
Raw Normal View History

2016-06-12 19:47:42 +01:00
{ stdenv, fetchurl, pkgconfig, intltool, mate, gnome3, gtk2, gtk_engines,
2016-08-04 12:05:50 +01:00
gtk-engine-murrine, gdk_pixbuf, librsvg }:
2013-08-27 14:02:46 +01:00
2016-05-28 17:28:47 +01:00
stdenv.mkDerivation rec {
name = "mate-themes-${version}";
version = "${major-ver}.${minor-ver}";
# There is no 3.24 release.
major-ver = if stdenv.lib.versionOlder gnome3.version "3.23" then gnome3.version else "3.22";
2016-06-12 19:47:42 +01:00
minor-ver = {
"3.20" = "22";
"3.22" = "13";
2016-06-12 19:47:42 +01:00
}."${major-ver}";
2013-08-27 14:02:46 +01:00
src = fetchurl {
2016-05-28 17:28:47 +01:00
url = "http://pub.mate-desktop.org/releases/themes/${major-ver}/${name}.tar.xz";
2016-06-12 19:47:42 +01:00
sha256 = {
"3.20" = "1yjj5w7zvyjyg0k21nwk438jjsnj0qklsf0z5pmmp1jff1vxyck4";
"3.22" = "1p7w63an8qs15hkj79nppy7471glv0rm1b0himn3c4w69q8qdc9i";
2016-06-12 19:47:42 +01:00
}."${major-ver}";
2013-08-27 14:02:46 +01:00
};
2016-05-28 17:28:47 +01:00
nativeBuildInputs = [ pkgconfig intltool ];
2016-06-12 19:47:42 +01:00
buildInputs = [ mate.mate-icon-theme gtk2 gtk_engines gtk-engine-murrine
2016-08-04 12:05:50 +01:00
gdk_pixbuf librsvg ];
2013-08-27 14:02:46 +01:00
meta = {
description = "A set of themes from MATE";
homepage = http://mate-desktop.org;
2013-08-27 14:02:46 +01:00
license = stdenv.lib.licenses.lgpl21;
2016-05-28 17:28:47 +01:00
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.romildo ];
2013-08-27 14:02:46 +01:00
};
}