diff options
author | José Romildo Malaquias <malaquias@gmail.com> | 2020-04-15 18:05:11 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 18:05:11 -0300 |
commit | cfa1718220e67dd1b611e81b577929520c11d81b (patch) | |
tree | 5761fe96128ff619da0ee60b04880f54f48d1754 /pkgs/data | |
parent | 2da253a7ded5942283049b3a83388123adc27ab6 (diff) | |
parent | 4e60f3040e18a94ee1daa21c68f7db4135377946 (diff) |
Merge pull request #85233 from romildo/upd.humanity-icon-theme
humanity-icon-theme: init at 0.6.15
Diffstat (limited to 'pkgs/data')
-rw-r--r-- | pkgs/data/icons/humanity-icon-theme/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/data/icons/humanity-icon-theme/default.nix b/pkgs/data/icons/humanity-icon-theme/default.nix new file mode 100644 index 0000000000000..62085110f5134 --- /dev/null +++ b/pkgs/data/icons/humanity-icon-theme/default.nix @@ -0,0 +1,44 @@ +{ stdenv, fetchurl, gtk3, gnome3, hicolor-icon-theme }: + +stdenv.mkDerivation rec { + pname = "humanity-icon-theme"; + version = "0.6.15"; + + src = fetchurl { + url = "https://launchpad.net/ubuntu/+archive/primary/+files/${pname}_${version}.tar.xz"; + sha256 = "19ja47468s3jfabvakq9wknyfclfr31a9vd11p3mhapfq8jv9g4x"; + }; + + nativeBuildInputs = [ + gtk3 + ]; + + propagatedBuildInputs = [ + gnome3.adwaita-icon-theme + 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 stdenv.lib; { + description = "Humanity icons from Ubuntu"; + homepage = "https://launchpad.net/humanity/"; + license = licenses.gpl2; + platforms = platforms.unix; + maintainers = [ maintainers.romildo ]; + }; +} |