biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / data / icons / humanity-icon-theme / default.nix
blobdd52c984b1b56514bd66da645df2cffeeeadeea2
1 { lib, stdenvNoCC, fetchurl, gtk3, adwaita-icon-theme, hicolor-icon-theme }:
3 stdenvNoCC.mkDerivation rec {
4   pname = "humanity-icon-theme";
5   version = "0.6.16";
7   src = fetchurl {
8     url = "https://launchpad.net/ubuntu/+archive/primary/+files/${pname}_${version}.tar.xz";
9     sha256 = "sha256-AyHl4zMyFE2/5Cui3Y/SB1yEUuyafDdybFPrafo4Ki0=";
10   };
12   nativeBuildInputs = [
13     gtk3
14   ];
16   propagatedBuildInputs = [
17     adwaita-icon-theme
18     hicolor-icon-theme
19   ];
21   dontDropIconThemeCache = true;
23   installPhase = ''
24     runHook preInstall
26     mkdir -p $out/share/icons
27     cp -a Humanity* $out/share/icons
28     rm $out/share/icons/*/{AUTHORS,CONTRIBUTORS,COPYING}
30     for theme in $out/share/icons/*; do
31       gtk-update-icon-cache $theme
32     done
34     runHook postInstall
35   '';
37   meta = with lib; {
38     description = "Humanity icons from Ubuntu";
39     homepage = "https://launchpad.net/humanity/";
40     license = licenses.gpl2;
41     platforms = platforms.unix;
42     maintainers = [ maintainers.romildo ];
43   };