mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-16 11:38:58 +00:00
nordic: replace duplicate files with hardlinks
This commit is contained in:
parent
23e84092c8
commit
f4acbb9279
@ -1,4 +1,9 @@
|
||||
{ lib, stdenv, fetchFromGitHub, gtk-engine-murrine }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, gtk-engine-murrine
|
||||
, jdupes
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nordic";
|
||||
@ -72,6 +77,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
nativeBuildInputs = [ jdupes ];
|
||||
|
||||
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
|
||||
|
||||
installPhase = ''
|
||||
@ -101,6 +108,10 @@ stdenv.mkDerivation rec {
|
||||
mv -v $out/share/themes/Nordic/kde/sddm/* $out/share/sddm/themes/Nordic/
|
||||
rm -rf $out/share/themes/Nordic/kde
|
||||
|
||||
# Replace duplicate files with hardlinks to the first file in each
|
||||
# set of duplicates, reducing the installed size in about 65%
|
||||
jdupes -L -r $out/share
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user