bitwarden-desktop: 2024.12.1 -> 2025.1.1 (#374021)
[NixPkgs.git] / pkgs / by-name / hu / humanity-icon-theme / package.nix
blob31a5bd2289263780cb004e98a9f740750c9e8ec6
2   lib,
3   stdenvNoCC,
4   fetchurl,
5   gtk3,
6   adwaita-icon-theme,
7   hicolor-icon-theme,
8 }:
10 stdenvNoCC.mkDerivation rec {
11   pname = "humanity-icon-theme";
12   version = "0.6.16";
14   src = fetchurl {
15     url = "https://launchpad.net/ubuntu/+archive/primary/+files/${pname}_${version}.tar.xz";
16     sha256 = "sha256-AyHl4zMyFE2/5Cui3Y/SB1yEUuyafDdybFPrafo4Ki0=";
17   };
19   nativeBuildInputs = [
20     gtk3
21   ];
23   propagatedBuildInputs = [
24     adwaita-icon-theme
25     hicolor-icon-theme
26   ];
28   dontDropIconThemeCache = true;
30   installPhase = ''
31     runHook preInstall
33     mkdir -p $out/share/icons
34     cp -a Humanity* $out/share/icons
35     rm $out/share/icons/*/{AUTHORS,CONTRIBUTORS,COPYING}
37     for theme in $out/share/icons/*; do
38       gtk-update-icon-cache $theme
39     done
41     runHook postInstall
42   '';
44   meta = with lib; {
45     description = "Humanity icons from Ubuntu";
46     homepage = "https://launchpad.net/humanity/";
47     license = licenses.gpl2;
48     platforms = platforms.unix;
49     maintainers = [ maintainers.romildo ];
50   };