deno: keep denort in a separate output

Signed-off-by: Anish Pallati <i@anish.land>
This commit is contained in:
Anish Pallati
2026-06-24 14:51:33 -04:00
parent ec48013e0f
commit e42dedf9d1
+8 -1
View File
@@ -37,6 +37,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
__structuredAttrs = true;
outputs = [
"out"
"denort"
];
src = fetchFromGitHub {
owner = "denoland";
repo = "deno";
@@ -227,7 +232,9 @@ rustPlatform.buildRustPackage (finalAttrs: {
'';
postInstall = ''
# Remove non-essential binaries like denort and test_server
moveToOutput "bin/denort" "$denort"
# Remove non-essential binaries like test_server
find $out/bin/* -not -name "deno" -delete
# Do what `deno x --install-alias` would do (it doesn't work with Nix-packaged Deno)