diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2023-12-10 00:02:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-10 00:02:18 +0000 |
commit | b5ff56aec743b9c83609fc0e26a6c439ee27f0df (patch) | |
tree | f685ccec1c75baf307f966b6692324a727ce9e17 /pkgs/development/interpreters | |
parent | 7c846b760dc09e6bf57b1f7c89f099c53f7a34c8 (diff) | |
parent | 84536849e642d11780b35db7862b23cf4423aff0 (diff) |
Merge master into staging-next
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r-- | pkgs/development/interpreters/wamr/default.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/development/interpreters/wamr/default.nix b/pkgs/development/interpreters/wamr/default.nix index 12e9d8831d360..9396f3361afae 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"; |