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 = [
|
2021-05-07 23:18:14 +02:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|