Commit Graph

8 Commits

Author SHA1 Message Date
Ivan Petkov
4322b22aa2 wasm-bindgen-cli: enable __structuredAttrs 2026-05-13 16:47:05 -07:00
Andrew Plaza
aedca56659 Update pkgs/build-support/wasm-bindgen-cli/default.nix
Co-authored-by: Philip Taron <philip.taron@gmail.com>
2025-10-07 12:33:32 -04:00
Andrew Plaza
08dd663b9b wasm-bindgen-cli_0_2_104: init at 0.2.104
wasmbindgen requires a exact match between the cli version and the
library version, generally that isn't that bad as it should always
be safe to update to the latest patch version of a library (but ofc
when reproduciblity and outdated lock files are in the mix that
complicates stuff, which is why I assume multiple versions are kept)
It's a case of upgrading a patch version technically being breaking
change unless you also update the library versions alongside it.
2025-10-03 17:37:05 -04:00
Andrew Plaza
382c96146a maintainers: add insipx 2025-09-16 11:39:10 -04:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Ihar Hrachyshka
dd0f03a56c treewide: remove usage of deprecated apple_sdk framework stubs
They are not doing anything right now. This is in preparation for their
complete removal from the tree.

Note: several changes that affect the derivation inputs (e.g. removal of
references to stub paths in build instructions) were left out. They will
be cleaned up the next iteration and will require special care.

Note: this PR is a result of a mix of ugly regex (not AST) based
automation and some manual labor. For reference, the regex automation
part was hacked in: https://github.com/booxter/nix-clean-apple_sdk

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-04-19 20:28:20 -04:00
Sigmanificient
91d5ab3ae4 treewide: remove unused rec expressions 2025-03-14 05:15:05 +01:00
Alyssa Ross
bca1dde2b4 buildWasmBindgenCli,wasm-bindgen-cli-*: init
Exposing an overridable cargoHash parameter is problematic because it
will produce silently broken FODs if we change the hashing scheme,
which we are currently doing across the tree because Cargo 1.84.0 has
changed the output of fetchCargoTarball, meaning all hashes have been
invalidated.  To avoid this happening in future, we are changing to
the fetchCargoVendor mechanism, which does not depend on
implementation details of Cargo.

The future-proof way to override a package with Cargo dependencies is
to pass a cargoDeps object.  This is more verbose, and requires the
caller to have access to the src object for the package.  To
compensate for this, I've introduced a buildWasmBindgenCli function
that is nicer to use than wasm-bindgen-cli.overrideAttrs, and I've
also introduced versioned attributes for wasm-bindgen-cli versions
currently in use in Nixpkgs, so that each package that wants to use a
particular version doesn't have to duplicate the src and cargoDeps
definitions for that version.

The unversioned "wasm-bindgen-cli" attribute is demoted to an alias,
with a view to its eventual removal.
2025-01-30 10:26:44 +01:00