zafiro-icons: 1.1 -> 1.2

Update to the latest upstream release:
https://github.com/zayronxio/Zafiro-icons/releases/tag/1.2

Includes some refactoring:
- use stdenvNoCC instead of stdenv
- run preInstall and postInstall hooks in the installPhase
- deduplicate files with jdupes
- set dontPatchELF and dontRewriteSymlinks to true. These fixup steps
  are slow and unnecessary for this package.
- remove single file with problematic filename causing
  gtk-update-icon-cache to fail
This commit is contained in:
kilianar 2022-07-06 11:26:54 +02:00 committed by superherointj
parent c63e60c0c2
commit da4602bf6b

View File

@ -1,18 +1,19 @@
{ lib, stdenv, fetchFromGitHub, gtk3, breeze-icons, gnome-icon-theme, numix-icon-theme, numix-icon-theme-circle, hicolor-icon-theme }:
{ lib, stdenvNoCC, fetchFromGitHub, gtk3, breeze-icons, gnome-icon-theme, numix-icon-theme, numix-icon-theme-circle, hicolor-icon-theme, jdupes }:
stdenv.mkDerivation rec {
stdenvNoCC.mkDerivation rec {
pname = "zafiro-icons";
version = "1.1";
version = "1.2";
src = fetchFromGitHub {
owner = "zayronxio";
repo = pname;
rev = version;
sha256 = "05h8qm9izjbp8pnl9jpbw3y9sddhp0zmg94fm1k4d4hhdqnakqhv";
sha256 = "sha256-Awc5Sw4X25pXEd4Ob0u6A6Uu0e8FYfwp0fEl90vrsUE=";
};
nativeBuildInputs = [
gtk3
jdupes
];
propagatedBuildInputs = [
@ -26,10 +27,23 @@ stdenv.mkDerivation rec {
dontDropIconThemeCache = true;
dontPatchELF = true;
dontRewriteSymlinks = true;
installPhase = ''
runHook preInstall
# remove copy file, as it is there clearly by mistake
rm "apps/scalable/android-sdk (copia 1).svg"
mkdir -p $out/share/icons/Zafiro-icons
cp -a * $out/share/icons/Zafiro-icons
gtk-update-icon-cache "$out"/share/icons/Zafiro-icons
gtk-update-icon-cache $out/share/icons/Zafiro-icons
jdupes --link-soft --recurse $out/share
runHook postInstall
'';
meta = with lib; {