paper-icon-theme: replace duplicate files with symlinks

This reduces considerably the space used by the package.

+9 -1
+9 -1
pkgs/data/icons/paper-icon-theme/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, meson, ninja, gtk3, gnome, gnome-icon-theme, hicolor-icon-theme }: 1 + { lib, stdenv, fetchFromGitHub, meson, ninja, gtk3, gnome, gnome-icon-theme, hicolor-icon-theme, jdupes }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "paper-icon-theme"; ··· 15 15 meson 16 16 ninja 17 17 gtk3 18 + jdupes 18 19 ]; 19 20 20 21 propagatedBuildInputs = [ ··· 25 26 26 27 dontDropIconThemeCache = true; 27 28 29 + # These fixup steps are slow and unnecessary for this package 30 + dontPatchELF = true; 31 + dontRewriteSymlinks = true; 32 + 28 33 postInstall = '' 29 34 # The cache for Paper-Mono-Dark is missing 30 35 gtk-update-icon-cache "$out"/share/icons/Paper-Mono-Dark; 36 + 37 + # replace duplicate files with symlinks 38 + jdupes -l -r $out/share/icons 31 39 ''; 32 40 33 41 meta = with lib; {