!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

671 Members
Rust153 Servers

Load older messages


SenderMessageTime
13 Jul 2025
@emilazy:matrix.orgemily

we have this in cargo.nix:

    //
      lib.optionalAttrs (stdenv.buildPlatform.rust.rustcTarget != stdenv.hostPlatform.rust.rustcTarget)
        {
          HOST_PKG_CONFIG_PATH = "${pkgsBuildBuild.pkg-config}/bin/pkg-config";
        }
21:24:00
@emilazy:matrix.orgemilyit seems highly questionable21:24:03
@emilazy:matrix.orgemily that's PKG_CONFIG_PATH for HOST, not the path to the executable 21:24:10
@emilazy:matrix.orgemily but 0ac955ad63e2f94c64de584551493ceb33b00b45 claims it fixed something somehow 21:24:31
14 Jul 2025
@glepage:matrix.orgGaétan Lepage

Looks like rustfmt is broken on x86_64-darwin on nixos-25.05:

https://buildbot.nix-community.org/#/builders/2847/builds/5266/steps/1/logs/stdio (from Nixvim CI)

00:45:35
@qyliss:fairydust.spaceAlyssa RossHydra shows broken between 36d055248bd7758309ead91562b2cc44b08a257f and bff650412cc35886110bed88287f6fa6ccb65cf610:18:36
@rosssmyth:matrix.orgrosssmythIt uses the MSVC libraries, and it uses lld as the linker. Link.exe sucks even on native Windows anyways. 14:50:16
@rosssmyth:matrix.orgrosssmythLooks like it probably is14:56:18
@rosssmyth:matrix.orgrosssmythOk, I updated it to use xwin. It is less janky, and faster to download. I'll have to more experimentation later. https://github.com/RossSmyth/nur/blob/main/msvc-rust/default.nix17:56:36
15 Jul 2025
@tomasajt:matrix.orgToma

With staging-next done, we can do https://github.com/NixOS/nixpkgs/pull/421558 now

This is just the removal of the usages, not the removal of the logic.

For the logic, should we make setting useFetchCargoVendor a warning/error in 25.11?
We could just remove the logic completely, but then people might not remove it from their out-of-tree derivations...

13:21:46
@tomasajt:matrix.orgToma *

With staging-next done, we can do https://github.com/NixOS/nixpkgs/pull/421558 now

This is just the removal of the usages, not the removal of the logic.

For the logic, should we make setting useFetchCargoVendor a warning/error in 25.11?
We could just remove the logic completely, but then people might not remove it from their out-of-tree derivations...
Or, since we didn't have too long of a period where useFetchCargoVendor was forced to be set to true manually, we should just remove it without warnings.

13:24:08
@emilazy:matrix.orgemilyI'm ambivalent about warning vs. error, but I think we should have some notice rather than just an unknown argument error13:29:19
@emilazy:matrix.orgemilywarning and then hard removal in 26.05 seems okay13:29:36
@emilazy:matrix.orgemily* warning in 25.11 and then hard removal in 26.05 seems okay13:29:39
@tomasajt:matrix.orgTomaThere are now unknown arguments... its just mkDerivation, anything goes13:29:48
@tomasajt:matrix.orgToma* There are no unknown arguments... its just mkDerivation, anything goes13:30:06
@emilazy:matrix.orgemilyouch…13:30:08
@emilazy:matrix.orgemilygood point13:30:16
@emilazy:matrix.orgemilymaybe a throw and then removal then13:30:36
@tomasajt:matrix.orgTomaAlso, should we wait for https://github.com/NixOS/nixpkgs/pull/423228 to reach stable so that we can do a double treewide to completely avoid merge conflicts?13:31:34
@tomasajt:matrix.orgToma* Also, should we wait for https://github.com/NixOS/nixpkgs/pull/423228 to reach stable so that we can do a double treewide to completely avoid backport merge conflicts?13:32:04
@emilazy:matrix.orgemilyprobably let's wait13:32:40
@tomasajt:matrix.orgTomaalright13:33:05
@emilazy:matrix.orgemilyprobably not a big deal13:33:25
@emilazy:matrix.orgemilybut means we can handle all the conflicts at once13:33:30
@emilazy:matrix.orgemily likely we'll need to deal with the staging branches too 13:33:38
@emilazy:matrix.orgemilyyou have commit bit for that right?13:33:44
@tomasajt:matrix.orgTomaI have not touched staging manually yet...13:35:50
@emilazy:matrix.orgemily it's pretty much just git merge, resolve conflicts, push 13:36:52
@emilazy:matrix.orgemilybut it is scary :P13:36:53

Show newer messages


Back to Room ListRoom Version: 6