diff --git a/packages/by-name/nunki/package.nix b/packages/by-name/nunki/package.nix index 0ccf755d04..8a88dcc93e 100644 --- a/packages/by-name/nunki/package.nix +++ b/packages/by-name/nunki/package.nix @@ -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";