!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

651 Members
Rust147 Servers

Load older messages


SenderMessageTime
18 Dec 2025
@damccull:matrix.orgdamccull

If it helps, it's specifically crashing on dioxis-cli

these 3 derivations will be built:
  /nix/store/my5wjqmc7nvmprq294dwzadg56bvq3jd-cargo-msrv-0.18.4.drv
  /nix/store/w0gpqb602fba792p5y6shhk00jyjm72y-dioxus-cli-0.7.0.drv
  /nix/store/n6bw1dssgvgjfnxwx9igxgq9z1qikjmv-nix-shell.drv
building '/nix/store/w0gpqb602fba792p5y6shhk00jyjm72y-dioxus-cli-0.7.0.drv'...
building '/nix/store/my5wjqmc7nvmprq294dwzadg56bvq3jd-cargo-msrv-0.18.4.drv'...
error: builder for '/nix/store/w0gpqb602fba792p5y6shhk00jyjm72y-dioxus-cli-0.7.0.drv' failed with exit code 101;
       last 18 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/gyr049rgffgxbkv6fycn641krhl31jl7-source
       > source root is source
       > Executing cargoSetupPostUnpackHook
       > Finished cargoSetupPostUnpackHook
       > Running phase: patchPhase
       > Executing cargoSetupPostPatchHook
       > Validating consistency between /build/source/Cargo.lock and /build/cargo-vendor-dir/Cargo.lock
       > Finished cargoSetupPostPatchHook
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > Running phase: buildPhase
       > error: rustc 1.86.0 is not supported by the following package:
       >   cargo-util-schemas@0.10.1 requires rustc 1.89
       > Either upgrade rustc or select compatible dependency versions with
       > `cargo update <name>@<current-ver> --precise <compatible-ver>`
       > where `<compatible-ver>` is the latest version supporting rustc 1.86.0
       >
       For full logs, run 'nix log /nix/store/w0gpqb602fba792p5y6shhk00jyjm72y-dioxus-cli-0.7.0.drv'.
error: 1 dependencies of derivation '/nix/store/n6bw1dssgvgjfnxwx9igxgq9z1qikjmv-nix-shell.drv' failed to build
18:34:56
@damccull:matrix.orgdamccullOoh, ok. Grok was useful this time. LLMs are starting to sometimes understand nix better. By having the dioxus-cli follow both nixpkgs and rust-overlay, it forced it to use my preferred versions rather than the version that comes with dioxus-cli. I guess I should report to dioxus their flake seems broken :D18:50:12
@damccull:matrix.orgdamccullWell, it's still compiliing so no guarantee yet, but I'll let you all know.18:50:45
@damccull:matrix.orgdamccullworked!18:55:38
19 Dec 2025
@frederic:scs.ems.hostFrédéric Christ (back on 02.01.) changed their display name from Frédéric Christ to Frédéric Christ (back on 02.01.).15:15:26
@sswag:matrix.orgsswag joined the room.22:58:53
20 Dec 2025
@mightyiam:matrix.orgShahar "Dawn" Or joined the room.11:43:43
@vivekanandan_ks:matrix.orgvivekanandan_ks joined the room.12:27:21
21 Dec 2025
@vivekanandan_ks:matrix.orgvivekanandan_ks

Hi All
Yesterday, I started looking for setting up an environment to learn rust😅.

I dwelled on setting up the environment and basic build through the help of some wiki and mainly vimjoyer's video.
Here's a hello world template of mine.

https://github.com/vivekanandan-ks/ksv-rust-try/blob/main/flake.nix

I have these configured:
Devshells :

  1. using nixpkgs and cargo, rustc etc (only stable from nixpkgs)
  2. using fenix for the toolchain (since this can be used for stable, beta, nightly releases)

Packages:

  1. plain: pkgs.rustPlatform.buildRustPackage
  2. naersk
  3. fenix + plain
  4. fenix + naersk

Any suggestion or improvements over this please😅

07:57:06
@k900:0upti.meK900 Honestly if your goal is to learn Rust, just nix-shell -p rustc cargo 07:58:31
@vivekanandan_ks:matrix.orgvivekanandan_ksMy goal is to package mainly, also wanted to learn rust on the way😅08:03:36
@k900:0upti.meK900 If you want to package for nixpkgs, the only thing you can use is rustPlatform 08:04:12
@k900:0upti.meK900 No out of tree dependencies are allowed 08:04:24
@acidbong:envs.netAcid Bong
In reply to @vivekanandan_ks:matrix.org
My goal is to package mainly, also wanted to learn rust on the way😅
then it's just a matter of creating a package with rustPlatform.buildRustPackage and a devshell with inputsFrom = [thatPackage]; nativeBuildInputs = [rust-analyzer]; and a formatter of your choice (rustfmt or genemichaels)
08:12:13
@vivekanandan_ks:matrix.orgvivekanandan_ks

Looks like there's more for me to learn. But it somewhat feels easier than the rabbit hole I went for python packaging in nix🥲

Looks like rust toolchain ecosystem is better

08:52:19

There are no newer messages yet.


Back to Room ListRoom Version: 6