Skip to content

Commit

Permalink
fix(libwasmvm): incorrect use of installPhase blowing nix closure
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-aitlahcen committed Sep 4, 2023
1 parent 9b3c4bb commit 6e8b136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/libwasmvm/libwasmvm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
inherit CARGO_BUILD_TARGET;
} // (if pkgs.stdenv.isLinux then {
cargoBuildCommand = "cargo build --release --example=wasmvmstatic";
installPhase = ''
installPhaseCommand = ''
mkdir -p $out/lib
mv target/${CARGO_BUILD_TARGET}/release/examples/libwasmvmstatic.a $out/lib/libwasmvm.${builtins.head (pkgs.lib.strings.splitString "-" system)}.a
'';
} else if pkgs.stdenv.isDarwin then {
# non-static dylib build on macOS
cargoBuildCommand = "cargo build --release";
installPhase = ''
installPhaseCommand = ''
mkdir -p $out/lib
mv target/${CARGO_BUILD_TARGET}/release/deps/libwasmvm.dylib $out/lib/libwasmvm.dylib
'';
Expand Down

0 comments on commit 6e8b136

Please sign in to comment.