From b61a6ea26912aa3300ba464527f8186bb13c74a0 Mon Sep 17 00:00:00 2001 From: squalus Date: Sat, 16 Jul 2022 17:00:44 -0700 Subject: [PATCH] standardnotes: remove duplicate files from output Remove some unnecessary files from the output. This reduces the closure size by about 200MB. --- pkgs/applications/editors/standardnotes/default.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/editors/standardnotes/default.nix b/pkgs/applications/editors/standardnotes/default.nix index 4787ec78bd3b..d4e43b4f71de 100644 --- a/pkgs/applications/editors/standardnotes/default.nix +++ b/pkgs/applications/editors/standardnotes/default.nix @@ -37,17 +37,14 @@ in appimageTools.wrapType2 rec { extraInstallCommands = '' # directory in /nix/store so readonly - cp -r ${appimageContents}/* $out cd $out chmod -R +w $out mv $out/bin/${name} $out/bin/${pname} # fixup and install desktop file ${desktop-file-utils}/bin/desktop-file-install --dir $out/share/applications \ - --set-key Exec --set-value ${pname} standard-notes.desktop - mv usr/share/icons share - - rm usr/lib/* AppRun standard-notes.desktop .so* + --set-key Exec --set-value ${pname} ${appimageContents}/standard-notes.desktop + ln -s ${appimageContents}/usr/share/icons share ''; meta = with lib; {