From 4e60f3040e18a94ee1daa21c68f7db4135377946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= Date: Tue, 14 Apr 2020 12:53:56 -0300 Subject: [PATCH] humanity-icon-theme: init at 0.6.15 --- .../icons/humanity-icon-theme/default.nix | 44 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 46 insertions(+) create mode 100644 pkgs/data/icons/humanity-icon-theme/default.nix 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 000000000000..62085110f513 --- /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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 53e4f676a17c..f273b3ef1a6c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17813,6 +17813,8 @@ in hermit = callPackage ../data/fonts/hermit { }; + humanity-icon-theme = callPackage ../data/icons/humanity-icon-theme { }; + hyperscrypt-font = callPackage ../data/fonts/hyperscrypt { }; ia-writer-duospace = callPackage ../data/fonts/ia-writer-duospace { };