From 1a808ce3844fe5782b62c767ac443a49b9e2dc3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo?= Date: Thu, 13 Jan 2022 09:59:55 -0300 Subject: [PATCH] mojave-gtk-theme: replace duplicate files with hardlinks --- pkgs/data/themes/mojave/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/data/themes/mojave/default.nix b/pkgs/data/themes/mojave/default.nix index 05cbc411008c..c1ed0721a48a 100644 --- a/pkgs/data/themes/mojave/default.nix +++ b/pkgs/data/themes/mojave/default.nix @@ -76,9 +76,15 @@ stdenv.mkDerivation rec { installPhase = '' runHook preInstall + name= ./install.sh --theme all --dest $out/share/themes + install -D -t $out/share/wallpapers ../"macOS Mojave Wallpapers"/* - jdupes -l -r $out/share + + # Replace duplicate files with hardlinks to the first file in each + # set of duplicates, reducing the installed size in about 53% + jdupes -L -r $out/share + runHook postInstall '';