52 lines
1.3 KiB
Nix
52 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
writableTmpDirAsHomeHook,
|
|
rustPlatform,
|
|
pkg-config,
|
|
openssl,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "function-runner";
|
|
version = "9.2.1";
|
|
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Shopify";
|
|
repo = "function-runner";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-IhlQEeKGWcE2lVhcLbOqUQU+DboxMDc/9eDlzlfcprg=";
|
|
};
|
|
|
|
cargoHash = "sha256-mf1kIDsNIk5oXIuvki9zt3D7qJOUtPOvDC8jbLjCMtE=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
nativeCheckInputs = [ writableTmpDirAsHomeHook ];
|
|
|
|
# Failed to download trampoline: error sending request for url
|
|
checkFlags = map (t: "--skip=${t}") [
|
|
"engine::tests::test_wasm_api_v1_function"
|
|
"tests::run_wasm_api_v1_function"
|
|
"tests::run_wasm_api_v2_function"
|
|
];
|
|
|
|
meta = {
|
|
description = "CLI tool which allows you to run Wasm Functions intended for the Shopify Functions infrastructure";
|
|
homepage = "https://github.com/Shopify/function-runner";
|
|
changelog = "https://github.com/Shopify/function-runner/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [
|
|
nintron
|
|
kybe236
|
|
];
|
|
mainProgram = "function-runner";
|
|
};
|
|
})
|