!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

465 Members
Rust111 Servers

Load older messages


SenderMessageTime
20 Oct 2024
@mpiechotka:matrix.orgmpiechotkaI'm trying to get rustPlatform equivalent10:33:34
@mpiechotka:matrix.orgmpiechotka

Ok. Found makeRustPlatform

10:41:04
@mpiechotka:matrix.orgmpiechotkaHmm. How do I update Cargo.lock in override of buildRustCrate? I tried both cargoPatch and patches and they both seems to not take effect.11:07:02
@niko:nyanbinary.rsnyanbinary 🏳️‍⚧️ joined the room.20:08:35
@niko:nyanbinary.rsnyanbinary 🏳️‍⚧️Does anyone know how I can incorporate step 5 into my derivation :P20:10:28
@niko:nyanbinary.rsnyanbinary 🏳️‍⚧️https://github.com/SpikeHD/Dorion?tab=readme-ov-file#steps20:10:29
@niko:nyanbinary.rsnyanbinary 🏳️‍⚧️https://github.com/NixOS/nixpkgs/pull/26577120:10:51
@niko:nyanbinary.rsnyanbinary 🏳️‍⚧️

I think this is the cause of the error I'm currently receiving

~/.nixpkgs/pkgs/by-name/do/dorion> nix build .#dorion                                                                                                                                                                  1 10/20/2024 03:44:02 PM
path '/home/binary/.nixpkgs/pkgs/by-name/do/dorion' does not contain a 'flake.nix', searching up
warning: Git tree '/home/binary/.nixpkgs' is dirty
error: builder for '/nix/store/nk7i6dp3m8acjf273n6x7v5b793m63xv-dorion-6.2.0.drv' failed with exit code 101;
       last 25 log lines:
       > patching file src/platform.rs
       > patch unexpectedly ends in middle of line
       > Hunk #1 succeeded at 264 with fuzz 1.
       > Executing cargoSetupPostPatchHook
       > Validating consistency between /build/source/src-tauri/Cargo.lock and /build/cargo-vendor-dir/Cargo.lock
       > Finished cargoSetupPostPatchHook
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > Running phase: buildPhase
       > Executing cargoBuildHook
       > cargoBuildHook flags: -j 12 --target x86_64-unknown-linux-gnu --offline --profile release
       > warning: unused manifest key: target.aarch64-unknown-linux-gnu.linker
       > warning: unused manifest key: target.armv7-unknown-linux-gnueabihf.linker
       > warning: unused manifest key: target.cfg(target_os = "macos").rustflags
       > warning: unused manifest key: target.x86_64-unknown-linux-gnu.rustflags
       > error: failed to load source for dependency `tauri-plugin-shell`
       >
       > Caused by:
       >   Unable to update /build/source/src-tauri/target/patch/tauri-plugin-shell-2.0.1
       >
       > Caused by:
       >   failed to read `/build/source/src-tauri/target/patch/tauri-plugin-shell-2.0.1/Cargo.toml`
       >
       > Caused by:
       >   No such file or directory (os error 2)
       For full logs, run 'nix log /nix/store/nk7i6dp3m8acjf273n6x7v5b793m63xv-dorion-6.2.0.drv'.

20:11:23
@niko:nyanbinary.rsnyanbinary 🏳️‍⚧️correct me if I'm wrong tho :P20:11:29
21 Oct 2024
@emilazy:matrix.orgemily
rustc> WARNING: The `change-id` is missing in the `config.toml`. This means that you will not be able to track the major changes made to the bootstrap configurations.
rustc> NOTE: to silence this warning, add `change-id = 129295` at the top of `config.toml`
rustc> NOTE: this message was printed twice to make it more likely to be seen
10:24:08
@emilazy:matrix.orgemilyhuh10:24:09
@emilazy:matrix.orgemilywonder if that's something we should be setting10:24:18
@julius:mtx.liftm.deˈt͡sɛːzaɐ̯The warning's been there for a few months at least.11:28:42
@veleiro:matrix.orgveleiro joined the room.12:42:39
@antifuchs:asf.computerantifuchs

I've just tried to upgrade nixpkgs-unstable and it looks like the vector package is failing to build with:

       error: attribute 'targetPlatforms' missing
       at /nix/store/riqkpszjqk02bi1wppfg8ip5xvh102qd-source/pkgs/build-support/rust/build-rust-package/default.nix:162:7:
          161|       meta.platforms or lib.platforms.all
          162|       rustc.targetPlatforms;
             |       ^
          163|   };

did something change there? Am I even seeing the right error message?

18:26:06
@emilazy:matrix.orgemily you're using rust-overlay, yes? 18:28:51
@qyliss:fairydust.spaceAlyssa RossUpdate whatever out-of-tree rustc you're using. If that doesn't work, open a bug report for that out-of-tree rustc.18:29:20
@antifuchs:asf.computerantifuchs I'm pretty sure I'm not putting the rust-overlay on top of nixpkgs? but can't completely rule it out. I thought I was getting the unadulterated vector package, but that's a good lead 18:30:02
@antifuchs:asf.computerantifuchs oh wait, damn, I am putting it onto my nixpkgs. what was I thinking? 18:30:49
@emilazy:matrix.orgemily rust-overlay fixed it but you have to update. but it seems like you're most likely overlaying rustc, which is not ideal to do, unless you really want to do it 18:30:50
@antifuchs:asf.computerantifuchsthe other weird bit is that this version I'm building did update rust-overlay as well as nixpkgs; oh well, not overlaying the global rustc seems like the right thing. thanks!18:33:31
@emilazy:matrix.orgemilythere might be multiple rust-overlays in play18:34:11
@emilazy:matrix.orgemilywell18:34:19
@emilazy:matrix.orgemily also if you override rustc then you run into circularity 18:34:25
@emilazy:matrix.orgemilythough I'd expect a different error then. shrug18:34:29
@antifuchs:asf.computerantifuchsI'm close to certain there are multiple rust-overlays. thanks flake inputs & input overrides )):18:36:43
@antifuchs:asf.computerantifuchsphew, untangled the hairball. thanks for the pointer!18:50:51
@reecertv:matrix.orgReecerTV joined the room.18:52:05
@reecertv:matrix.orgReecerTV set a profile picture.18:59:14
@artur:glasgow.social(artur 'manuel) changed their display name from (lambda (f l) (format nil "~a ~a")) "Artur" "Manuel" to (artur 'manuel).20:03:00

There are no newer messages yet.


Back to Room ListRoom Version: 6