deno: keep denort in a separate output (#534873)
This commit is contained in:
@@ -35,6 +35,13 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "deno";
|
||||
version = "2.8.3";
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
"denort"
|
||||
];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "denoland";
|
||||
repo = "deno";
|
||||
@@ -225,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)
|
||||
@@ -279,6 +288,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
jk
|
||||
ofalvai
|
||||
mynacol
|
||||
anish
|
||||
];
|
||||
maxSilent = 14400; # 4h, double the default of 7200s; sometimes needed for x86_64-darwin on hydra
|
||||
platforms = [
|
||||
|
||||
Reference in New Issue
Block a user