Skip to content

Commit

Permalink
packages/nunki: empty out output for improved build performance
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Feb 20, 2024
1 parent 016b94d commit 7801cbf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/by-name/nunki/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,14 @@ buildGoModule rec {

postInstall = ''
for sub in ${builtins.concatStringsSep " " subPackages}; do
install -Dm755 "$out/bin/$sub" "''${!sub}/bin/$sub"
mkdir -p "''${!sub}/bin"
mv "$out/bin/$sub" "''${!sub}/bin/$sub"
done
# ensure no binary is left in out
rmdir "$out/bin/"
# rename the cli binary to nunki
mv "$cli/bin/cli" "$cli/bin/nunki"
'';
meta.mainProgram = "nunki";
Expand Down

0 comments on commit 7801cbf

Please sign in to comment.