nixpkgs/pkgs/desktops/mate/mate-icon-theme/default.nix

36 lines
945 B
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, gettext, iconnamingutils, librsvg, gtk3, hicolor-icon-theme }:
2013-08-27 06:01:24 -07:00
2016-05-28 10:43:21 -07:00
stdenv.mkDerivation rec {
pname = "mate-icon-theme";
2020-02-12 09:51:20 -08:00
version = "1.24.0";
2013-08-27 06:01:24 -07:00
src = fetchurl {
url = "https://pub.mate-desktop.org/releases/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2020-02-12 09:51:20 -08:00
sha256 = "0a2lz61ivwwcdznmwlmgjr6ipr9sdl5g2czbagnpxkwz8f3m77na";
2013-08-27 06:01:24 -07:00
};
nativeBuildInputs = [ pkgconfig gettext iconnamingutils ];
2016-05-28 10:43:21 -07:00
buildInputs = [ librsvg ];
propagatedBuildInputs = [
hicolor-icon-theme
];
dontDropIconThemeCache = true;
2018-03-21 14:01:03 -07:00
2017-08-31 09:21:02 -07:00
postInstall = ''
for theme in "$out"/share/icons/*; do
"${gtk3.out}/bin/gtk-update-icon-cache" "$theme"
done
'';
2018-03-21 14:01:03 -07:00
2013-08-27 06:01:24 -07:00
meta = {
description = "Icon themes from MATE";
2020-02-12 09:51:20 -08:00
homepage = "https://mate-desktop.org";
2016-05-28 10:43:21 -07:00
license = stdenv.lib.licenses.lgpl3;
2018-03-21 14:01:03 -07:00
platforms = stdenv.lib.platforms.linux;
2016-05-28 10:43:21 -07:00
maintainers = [ stdenv.lib.maintainers.romildo ];
2013-08-27 06:01:24 -07:00
};
}