edge-runtime: 1.14.0 -> 1.53.1

This commit is contained in:
Indexyz 2024-05-23 17:34:14 +08:00
parent 1a38124e60
commit 2c4b8f1193
3 changed files with 7140 additions and 31 deletions

File diff suppressed because it is too large Load Diff

View File

@ -11,7 +11,7 @@
let
pname = "edge-runtime";
version = "1.14.0";
version = "1.53.1";
in
rustPlatform.buildRustPackage {
inherit pname version;
@ -20,11 +20,17 @@ rustPlatform.buildRustPackage {
owner = "supabase";
repo = pname;
rev = "v${version}";
hash = "sha256-63XStzO4Jt6ObWuzcBf2QwCIWsStXvhQ0XaJabELhWg=";
hash = "sha256-qEEFEeAyUOnNvxIBfAmhMDWde3OPOpyaEI2pBYrdCr0=";
fetchSubmodules = true;
};
cargoHash = "sha256-JwwdvvpqgSbl0Xyb5pQ5hzZRrrCnDSjwV+ikdO2pXCk=";
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"ort-2.0.0-rc.0" = "sha256-j3g9ES2ZLmAAcPYgszBGDG16HiFJTnohwxSvXypFGTw=";
};
};
nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ];
@ -35,33 +41,19 @@ rustPlatform.buildRustPackage {
# To avoid this we pre-download the file and export it via RUSTY_V8_ARCHIVE
RUSTY_V8_ARCHIVE = callPackage ./librusty_v8.nix { };
# For version tag
GIT_V_TAG = version;
passthru.updateScript = nix-update-script { };
preCheck = ''
export HOME=$(mktemp -d)
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
$out/bin/edge-runtime --help
runHook postInstallCheck
'';
checkFlags = [
# tries to make a network access
"--skip=deno_runtime::test::test_main_rt_fs"
"--skip=deno_runtime::test::test_main_runtime_creation"
"--skip=deno_runtime::test::test_os_env_vars"
"--skip=deno_runtime::test::test_os_ops"
"--skip=deno_runtime::test::test_user_runtime_creation"
"--skip=test_custom_readable_stream_response"
"--skip=test_import_map_file_path"
"--skip=test_import_map_inline"
"--skip=test_main_worker_options_request"
"--skip=test_main_worker_post_request"
"--skip=test_null_body_with_204_status"
"--skip=test_null_body_with_204_status_post"
"--skip=test_file_upload"
"--skip=test_oak_server"
"--skip=test_tls_throw_invalid_data"
"--skip=test_user_worker_json_imports"
"--skip=node::analyze::tests::test_esm_code_with_node_globals"
"--skip=node::analyze::tests::test_esm_code_with_node_globals_with_shebang"
];
doCheck = false;
meta = with lib; {
description = "A server based on Deno runtime, capable of running JavaScript, TypeScript, and WASM services";

View File

@ -10,11 +10,11 @@ let
};
in
fetch_librusty_v8 {
version = "0.74.3";
version = "0.83.2";
shas = {
x86_64-linux = "sha256-8pa8nqA6rbOSBVnp2Q8/IQqh/rfYQU57hMgwU9+iz4A=";
aarch64-linux = "sha256-3kXOV8rlCNbNBdXgOtd3S94qO+JIKyOByA4WGX+XVP0=";
x86_64-darwin = "sha256-iBBVKZiSoo08YEQ8J/Rt1/5b7a+2xjtuS6QL/Wod5nQ=";
aarch64-darwin = "sha256-Djnuc3l/jQKvBf1aej8LG5Ot2wPT0m5Zo1B24l1UHsM=";
x86_64-linux = "sha256-RJNdy5jRZK3dTgrHsWuZZAHUyy1EogyNNuBekZ3Arrk=";
aarch64-linux = "sha256-mpOmuqtd7ob6xvrgH4P/6GLa/hXTS/ok0WOYo7+7ZhI=";
x86_64-darwin = "sha256-2o8CvJ3r5+4PLNGTySqPPDTqbU0piX4D1UtZMscMdHU=";
aarch64-darwin = "sha256-WHeITWSHjZxfQJndxcjsp4yIERKrKXSHFZ0UBc43p8o=";
};
}