Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
55 lines
1 KiB
Nix
55 lines
1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, pkg-config
|
|
, gettext
|
|
, iconnamingutils
|
|
, librsvg
|
|
, gtk3
|
|
, hicolor-icon-theme
|
|
, mateUpdateScript
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mate-icon-theme";
|
|
version = "1.28.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "lNYHkGDKXfdFQpId5O6ji30C0HVhyRk1bZXeh2+abTo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
gettext
|
|
iconnamingutils
|
|
];
|
|
|
|
buildInputs = [
|
|
librsvg
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
hicolor-icon-theme
|
|
];
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
postInstall = ''
|
|
for theme in "$out"/share/icons/*; do
|
|
"${gtk3.out}/bin/gtk-update-icon-cache" "$theme"
|
|
done
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
passthru.updateScript = mateUpdateScript { inherit pname; };
|
|
|
|
meta = with lib; {
|
|
description = "Icon themes from MATE";
|
|
homepage = "https://mate-desktop.org";
|
|
license = licenses.lgpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = teams.mate.members;
|
|
};
|
|
}
|