From 5a6945caae15a065fdf0bc207dc7ac1e431c3596 Mon Sep 17 00:00:00 2001 From: 2kybe3 Date: Wed, 6 May 2026 19:44:05 +0200 Subject: [PATCH] function-runner: 9.0.0 -> 9.1.2 Diff: https://github.com/Shopify/function-runner/compare/v9.0.0...v9.1.2 Changelogs: - https://github.com/Shopify/function-runner/releases/tag/v9.1.0 - https://github.com/Shopify/function-runner/releases/tag/v9.1.1 - https://github.com/Shopify/function-runner/releases/tag/v9.1.2 --- pkgs/by-name/fu/function-runner/package.nix | 36 +++++++++++++++++---- 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/fu/function-runner/package.nix b/pkgs/by-name/fu/function-runner/package.nix index 291b843ee5cc..76e0fbeea0c9 100644 --- a/pkgs/by-name/fu/function-runner/package.nix +++ b/pkgs/by-name/fu/function-runner/package.nix @@ -1,27 +1,51 @@ { lib, fetchFromGitHub, + writableTmpDirAsHomeHook, rustPlatform, + pkg-config, + openssl, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "function-runner"; - version = "9.0.0"; + version = "9.1.2"; + + __structuredAttrs = true; src = fetchFromGitHub { owner = "Shopify"; repo = "function-runner"; - rev = "v${finalAttrs.version}"; - sha256 = "sha256-xzajHtFs7cp7D1ZdG3jBFbjheTSgWR/Vz4fkew3iAkc="; + tag = "v${finalAttrs.version}"; + hash = "sha256-KvReKvmF3i4zlfM8uj3KHamjfudcrhqrKGfK8O5tMpE="; }; - cargoHash = "sha256-fRLBKHsb+y2uyqWejRBmJm+t5CAkL9ScQl6iVCksahU="; + cargoHash = "sha256-gnEps/o+C8UpukO1oRF4qlhNsoAmyUmxMKGAgSykNY0="; + + 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"; - mainProgram = "function-runner"; 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 ]; + maintainers = with lib.maintainers; [ + nintron + kybe236 + ]; + mainProgram = "function-runner"; }; })