mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 21:10:08 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user