From 8564bda760ed03fb33911c811a3f2966197b8657 Mon Sep 17 00:00:00 2001 From: azuwis Date: Sun, 16 Aug 2026 20:43:37 +0800 Subject: [PATCH] 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 (5e8a08a2a8c8). 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. --- pkgs/by-name/de/deno/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/de/deno/package.nix b/pkgs/by-name/de/deno/package.nix index c6b7c62753d7..e598422946b2 100644 --- a/pkgs/by-name/de/deno/package.nix +++ b/pkgs/by-name/de/deno/package.nix @@ -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