-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
wasm-pack: init at 0.8.1 #58644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wasm-pack: init at 0.8.1 #58644
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and working
|
||
cargoSha256 = "1xdx0gjqd4zyhnp72hz88rdmgry1m7rcw2j73lh67vp08z74y54y"; | ||
|
||
nativeBuildInputs = [ pkgconfig openssl ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This probably links against openssl, in which case it should be in buildInputs
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LnL7 yes indeed!
For cross-compilation, is this host/build distinction more significant than just for clarity?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LnL7 After re-reading the relevant sections of nixpkgs manual and observing the build result on darwin, I think I now understand the distinction between nativeBuildInputs
and buildInputs
.
In my latest change, I've put pkgconfig
into naitveBuildInputs
and openssl
into buildInputs
:
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl ];
Thanks again for reviewing this PR and suggesting changes.
Is there more work to be done to get this PR fit for merge?
@GrahamcOfBorg build wasm-pack |
Rebased master and squashed all changes into one commit. |
wasm-pack is a workflow tool maintained by the Rust and WebAssembly Working Group to make working with Rust-generated WebAssembly packages easier to work with.
Hmm, this failed once merged: https://hydra.nixos.org/build/93023162/nixlog/2 I'll see if there is a reason the hash was expected to change. |
Yeah it looks like it's related to #60668 |
I've created #60892 to use the hydra hash. PTAL. |
@kevincox thanks for sorting this out ! |
I was about to open PR to add this. Pleased to see I don't have to <3 |
Motivation for this change
This pull request packages
wasm-pack
, which is an important part of the Rust-Wasm ecosystem to generate WebAssembly packages with JavaScript bindings.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)