nixpkgs-suyu/pkgs/data/icons/humanity-icon-theme/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1,011 B
Nix
Raw Normal View History

2022-03-24 16:29:46 +01:00
{ lib, stdenvNoCC, fetchurl, gtk3, gnome, hicolor-icon-theme }:
2020-04-14 17:53:56 +02:00
2022-03-24 16:29:46 +01:00
stdenvNoCC.mkDerivation rec {
2020-04-14 17:53:56 +02:00
pname = "humanity-icon-theme";
2022-03-24 16:29:46 +01:00
version = "0.6.16";
2020-04-14 17:53:56 +02:00
src = fetchurl {
url = "https://launchpad.net/ubuntu/+archive/primary/+files/${pname}_${version}.tar.xz";
2022-03-24 16:29:46 +01:00
sha256 = "sha256-AyHl4zMyFE2/5Cui3Y/SB1yEUuyafDdybFPrafo4Ki0=";
2020-04-14 17:53:56 +02:00
};
nativeBuildInputs = [
gtk3
];
propagatedBuildInputs = [
gnome.adwaita-icon-theme
2020-04-14 17:53:56 +02:00
hicolor-icon-theme
];
dontDropIconThemeCache = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/icons
cp -a Humanity* $out/share/icons
rm $out/share/icons/*/{AUTHORS,CONTRIBUTORS,COPYING}
for theme in $out/share/icons/*; do
gtk-update-icon-cache $theme
done
runHook postInstall
'';
meta = with lib; {
2020-04-14 17:53:56 +02:00
description = "Humanity icons from Ubuntu";
homepage = "https://launchpad.net/humanity/";
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = [ maintainers.romildo ];
};
}