From 3a743db2b1ecbebcae880f9396d1afdb4af9a91b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Fern=C3=A1ndez=20L=C3=B3pez?= Date: Sat, 9 Dec 2023 00:45:48 +0100 Subject: [PATCH] wamr: 1.2.3 -> 1.3.0 --- pkgs/development/interpreters/wamr/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/development/interpreters/wamr/default.nix b/pkgs/development/interpreters/wamr/default.nix index 12e9d8831d36..9396f3361afa 100644 --- a/pkgs/development/interpreters/wamr/default.nix +++ b/pkgs/development/interpreters/wamr/default.nix @@ -6,18 +6,24 @@ stdenv.mkDerivation (finalAttrs: { pname = "wamr"; - version = "1.2.3"; + version = "1.3.0"; src = fetchFromGitHub { owner = "bytecodealliance"; repo = "wasm-micro-runtime"; rev = "WAMR-${finalAttrs.version}"; - hash = "sha256-bnia0ORC0YajO7I3XDMdpjlktDqOiXDlGcf12N1G+eg="; + hash = "sha256-h+IwCdufimmkVk2XUAFtDcV+5dJWohRc1kmh3zgDKIg="; }; nativeBuildInputs = [ cmake ]; - sourceRoot = "${finalAttrs.src.name}/product-mini/platforms/linux"; + sourceRoot = let + platform = if stdenv.isLinux then + "linux" + else if stdenv.isDarwin then + "darwin" + else throw "unsupported platform"; + in "${finalAttrs.src.name}/product-mini/platforms/${platform}"; meta = with lib; { description = "WebAssembly Micro Runtime";