14 Commits

Author SHA1 Message Date
oxalica
66792ee2c2 mk-component-set: fix nightly build failure on non-empty /etc.
See: <https://github.com/rust-lang/rust/pull/144498>
2025-09-15 05:58:16 -04:00
oxalica
cdf4e51314 *: format non-generated nix files with nixfmt 1.0 2025-07-22 11:48:01 +08:00
oxalica
c564fb830c Fix typo for default targetPlatforms
Co-authored-by: ggreif <ggreif@gmail.com>
2025-04-16 07:45:54 -04:00
Marcel Müller
5d1865c0da mk-component-sets: add meta.mainProgram for components (#204)
Previously the individual components have not set a mainProgram. This is
the somewhat de-facto standard in nixpkgs to signal which executable is
associated to a given derivation.

This patch uses the renames table for the given components to get the
proper executable name.

To be conservative, only these executables are marked for now. They are
also frequently run on their own without cargo.

Signed-off-by: Marcel Müller <neikos@neikos.email>
2025-01-13 00:51:20 +08:00
oxalica
06871d5c5f {rust-bin,example}: remove WASI target workaround and fix example
The un-versioned `wasm32-wasi` target is removed in favor of
`wasm32-wasip?` since Rust 1.84. Examples are updated.

The nixpkgs patch for WASI target name remapping is merged in 24.11.
We can also safely remove the workaround.
2025-01-11 13:09:47 +08:00
oxalica
bbab2ab9e1 mk-component-set: fix for latest nixpkgs' darwin handling 2024-11-17 00:18:10 -05:00
oxalica
c48c2d76b6 mk-aggregated: inherit passthru platforms from nixpkgs' rustc
These are used by `buildRustPackage` for default `meta` and causes eval
failures on latest nixpkgs.

See: https://github.com/NixOS/nixpkgs/pull/338999
2024-10-15 22:32:22 -04:00
Pierre-Etienne Meunier
e310b9bd71 Adding libsecret to cargo to get cargo login to work (#190)
This makes `cargo:libsecret` work, which is included in the recommended configuration.

See: https://doc.rust-lang.org/cargo/reference/registry-authentication.html#cargolibsecret
2024-10-09 16:04:56 +08:00
oxalica
e392f7e3c4 rust-bin: fix missed arguments in fromRustcRev
Fixes #184
2024-09-05 18:09:52 -04:00
oxalica
025e1742de mk-aggregated: prepend rpath instead of setting it
The original binary may have outstanding RPATH, eg. to libgcc_s, which
must be kept.
2024-06-04 03:29:17 +08:00
oxalica
081f091cd8 {docs,fetch}: fix typos 2024-06-03 04:51:55 -04:00
oxalica
305d3b088e flake: impl builder interface lib.mkRustBin
This allows construction of `rust-bin` attrset on an existing `pkgs`,
instead of staging another overlayed nixpkgs. This can reduce redundant
evaluation of nixpkgs for flake-heavy users who also don't like or
cannot (due to flake dependency hell) manually instantiate nixpkgs.
2024-06-03 04:51:55 -04:00
oxalica
92089b75db *: refactor and bubble up self-dependencies from final/self
Clean up entangled self-references and make inputs explicit through
arguments.
2024-06-03 04:51:55 -04:00
oxalica
37a2fe6c74 *: move internal files into lib subdir
They are not part of our public interfaces and must not be imported
alone.
2024-06-03 01:55:02 -04:00