|
|
|
@ -17,15 +17,15 @@ |
|
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec { |
|
|
|
|
pname = "deno"; |
|
|
|
|
version = "1.15.3"; |
|
|
|
|
version = "1.16.2"; |
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub { |
|
|
|
|
owner = "denoland"; |
|
|
|
|
repo = pname; |
|
|
|
|
rev = "v${version}"; |
|
|
|
|
sha256 = "sha256-IFEo2F3gayR2LmAAJXezZPXpRfZf4re3YPZRcXpqx6o="; |
|
|
|
|
sha256 = "sha256-Qf1eDQ6ZbBGOQIDh2q8hKjsKB0Ri9Hjqq1AMOTanML0="; |
|
|
|
|
}; |
|
|
|
|
cargoSha256 = "sha256-9ZpPiqlqP01B9ETpVqVreivNuSMB1td4LinxXdH7PsM="; |
|
|
|
|
cargoSha256 = "sha256-ZA9pR8yQV5v/Xa/B7M01PIqrkBe1DVIXC5VURoE1EtI="; |
|
|
|
|
|
|
|
|
|
# Install completions post-install |
|
|
|
|
nativeBuildInputs = [ installShellFiles ]; |
|
|
|
@ -35,20 +35,9 @@ rustPlatform.buildRustPackage rec { |
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin |
|
|
|
|
[ libiconv libobjc Security CoreServices Metal Foundation QuartzCore ]; |
|
|
|
|
|
|
|
|
|
# The rusty_v8 package will try to download a `librusty_v8.a` release at build time to our read-only filesystem |
|
|
|
|
# To avoid this we pre-download the file and place it in the locations it will require it in advance |
|
|
|
|
preBuild = |
|
|
|
|
let arch = rust.toRustTarget stdenv.hostPlatform; in |
|
|
|
|
'' |
|
|
|
|
_librusty_v8_setup() { |
|
|
|
|
for v in "$@"; do |
|
|
|
|
install -D ${librusty_v8} "target/$v/gn_out/obj/librusty_v8.a" |
|
|
|
|
done |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# Copy over the `librusty_v8.a` file inside target/XYZ/gn_out/obj, symlink not allowed |
|
|
|
|
_librusty_v8_setup "debug" "release" "${arch}/release" |
|
|
|
|
''; |
|
|
|
|
# The v8 package will try to download a `librusty_v8.a` release at build time to our read-only filesystem |
|
|
|
|
# To avoid this we pre-download the file and export it via RUSTY_V8_ARCHIVE |
|
|
|
|
RUSTY_V8_ARCHIVE = librusty_v8; |
|
|
|
|
|
|
|
|
|
# Tests have some inconsistencies between runs with output integration tests |
|
|
|
|
# Skipping until resolved |
|
|
|
|