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 }: 2 3 stdenv.mkDerivation rec { 4 pname = "paper-icon-theme"; ··· 15 meson 16 ninja 17 gtk3 18 ]; 19 20 propagatedBuildInputs = [ ··· 25 26 dontDropIconThemeCache = true; 27 28 postInstall = '' 29 # The cache for Paper-Mono-Dark is missing 30 gtk-update-icon-cache "$out"/share/icons/Paper-Mono-Dark; 31 ''; 32 33 meta = with lib; {
··· 1 + { lib, stdenv, fetchFromGitHub, meson, ninja, gtk3, gnome, gnome-icon-theme, hicolor-icon-theme, jdupes }: 2 3 stdenv.mkDerivation rec { 4 pname = "paper-icon-theme"; ··· 15 meson 16 ninja 17 gtk3 18 + jdupes 19 ]; 20 21 propagatedBuildInputs = [ ··· 26 27 dontDropIconThemeCache = true; 28 29 + # These fixup steps are slow and unnecessary for this package 30 + dontPatchELF = true; 31 + dontRewriteSymlinks = true; 32 + 33 postInstall = '' 34 # The cache for Paper-Mono-Dark is missing 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 39 ''; 40 41 meta = with lib; {