3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/mate/mate-icon-theme/default.nix

32 lines
903 B
Nix
Raw Normal View History

2017-08-31 17:21:02 +01:00
{ stdenv, fetchurl, pkgconfig, intltool, iconnamingutils, librsvg, hicolor_icon_theme, gtk3 }:
2013-08-27 14:01:24 +01:00
2016-05-28 18:43:21 +01:00
stdenv.mkDerivation rec {
name = "mate-icon-theme-${version}";
version = "${major-ver}.${minor-ver}";
2017-03-28 03:22:40 +01:00
major-ver = "1.18";
2017-08-06 14:29:29 +01:00
minor-ver = "2";
2013-08-27 14:01:24 +01:00
src = fetchurl {
2016-05-28 18:43:21 +01:00
url = "http://pub.mate-desktop.org/releases/${major-ver}/${name}.tar.xz";
2017-08-06 14:29:29 +01:00
sha256 = "0si3li3kza7s45zhasjvqn5f85zpkn0x8i4kq1dlnqvjjqzkg4ch";
2013-08-27 14:01:24 +01:00
};
2016-05-28 18:43:21 +01:00
nativeBuildInputs = [ pkgconfig intltool iconnamingutils ];
2017-08-31 17:21:02 +01:00
buildInputs = [ librsvg hicolor_icon_theme ];
postInstall = ''
for theme in "$out"/share/icons/*; do
"${gtk3.out}/bin/gtk-update-icon-cache" "$theme"
done
'';
2013-08-27 14:01:24 +01:00
meta = {
description = "Icon themes from MATE";
homepage = http://mate-desktop.org;
2016-05-28 18:43:21 +01:00
license = stdenv.lib.licenses.lgpl3;
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.romildo ];
2013-08-27 14:01:24 +01:00
};
}