deno: move libdenort.so to its own output

Move it out of $out into a dedicated libdenort output to reduce the deno
closure size, like denort already is (5e8a08a2a8).

libdenort.so is large (~112M) and not linked by the deno CLI. It is the
base for `deno desktop`, and upstream ships it as a separate artifact.
This commit is contained in:
azuwis
2026-08-16 20:43:37 +08:00
parent a86990952d
commit 8564bda760

View File

@@ -43,6 +43,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
outputs = [
"out"
"denort"
"libdenort"
];
src = fetchFromGitHub {
@@ -244,6 +245,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
postInstall = ''
moveToOutput "bin/denort" "$denort"
moveToOutput "lib/libdenort${stdenv.hostPlatform.extensions.sharedLibrary}" "$libdenort"
# Remove non-essential binaries like test_server
find $out/bin/* -not -name "deno" -delete