!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

464 Members
Rust111 Servers

Load older messages


SenderMessageTime
17 Aug 2024
@emilazy:matrix.orgemilybut they both ship stable versions16:17:48
18 Aug 2024
@me:linj.techlinjno existing update scripts work for a rust package using a cargoLock.lockFile due to git dependencies, right?05:32:07
@getchoo:matrix.orggetchoo joined the room.07:42:00
@m1cr0man:m1cr0man.comm1cr0man Hello. Is anyone else having issues with cargo-audit? I tried to set up a crane project with their quick start, but subsequently found that nix shell github:NixOS/nixpkgs/nixos-unstable#cargo-audit fails to compile. 12:07:42
@a-kenji:matrix.orga-kenji
In reply to @m1cr0man:m1cr0man.com
Hello. Is anyone else having issues with cargo-audit? I tried to set up a crane project with their quick start, but subsequently found that nix shell github:NixOS/nixpkgs/nixos-unstable#cargo-audit fails to compile.
It's not fixed on latest nixpkgs yet afaik. If you switch to a nixpkgs before the latest? staging merge it should still compile. Basically prior to rust v1.80.
12:20:56
@m1cr0man:m1cr0man.comm1cr0manAh ok, I was hoping nixos-unstable would be far enough back. Thanks :) 12:22:36
@r3vx:matrix.orgr3vx joined the room.14:17:36
@simon.brandner:envs.netŠimon BrandnerRedacted or Malformed Event16:53:46
@getchoo:matrix.orggetchoo
In reply to @me:linj.tech
no existing update scripts work for a rust package using a cargoLock.lockFile due to git dependencies, right?
nix-update-script/nix-update does support this
20:47:15
@me:linj.techlinj
In reply to @getchoo:matrix.org
nix-update-script/nix-update does support this
I does not work in my last attempt. Only the version is updated, hash and lock file remains unchanged. Do you have a working example?
22:19:43
@me:linj.techlinjand you mean mic92's nix-update, right?22:21:17
@getchoo:matrix.orggetchoolast time i recall using that was with gitbutler in nixpkgs. it updates the hit hashes as well22:24:59
@getchoo:matrix.orggetchooand yes22:25:00
@me:linj.techlinjthanks, it works now22:40:02
@me:linj.techlinjI must have made some other mistakes in the last attempt22:40:19
19 Aug 2024
@philiptaron:matrix.orgPhilip Taron (UTC-8)https://github.com/NixOS/nixpkgs/issues/334857 I was wondering about this myself.03:04:04
@emilazy:matrix.orgemilyme also03:07:18
@emilazy:matrix.orgemilyI assumed it had been around longer03:07:40
@emilazy:matrix.orgemilyI'll probably end up touching that code for We Should Improve Rust Somewhat but it seems like it should be a two line fix so maybe someone else should just do it03:08:29
@sasha:the-apothecary.clubSashanoraa.gay (she/her, ze/zir)I might look at it if I have time in the next few days03:42:29
@simon.brandner:envs.netŠimon Brandner

I am seeing a peculiar issue: nix build works just fine but when using the flake from my NixOS config I get complaints about Rust version:

error: builder for '/nix/store/p7dajki1blbc0wlsjk86ymh3pi3zh0mk-oblichey-0.0.1.drv' failed with exit code 101;
       last 10 log lines:
       > Finished cargoSetupPostPatchHook
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > Running phase: buildPhase
       > Executing cargoBuildHook
       > ++ env CC_X86_64_UNKNOWN_LINUX_GNU=/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/cc CXX_X86_64_UNKNOWN_LINUX_GNU=/nix/store/9bv7dcvmfcjnmg5mnqw
qlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/c++ CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/cc CC_X86_64_UNKNOWN
_LINUX_GNU=/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/cc CXX_X86_64_UNKNOWN_LINUX_GNU=/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/
bin/c++ CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/cc CARGO_BUILD_TARGET=x86_64-unknown-linux-gnu HOST_C
C=/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/cc HOST_CXX=/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/c++ cargo build -j 8 --ta
rget x86_64-unknown-linux-gnu --frozen --profile release
       > error: package `cubecl v0.1.1 (https://github.com/tracel-ai/cubecl?rev=dd274b6515f853ab1c82db410d6fc7697060f69e#dd274b65)` cannot be built because it requires rustc
 1.79 or newer, while the currently active rustc version is 1.77.2
       > Either upgrade to rustc 1.79 or newer, or use
       > cargo update cubecl@0.1.1 --precise ver
       > where `ver` is the latest version of `cubecl` supporting rustc 1.77.2
       For full logs, run 'nix log /nix/store/p7dajki1blbc0wlsjk86ymh3pi3zh0mk-oblichey-0.0.1.drv'.
error: 1 dependencies of derivation '/nix/store/mxwvym1s7dd4szzs3ccxnwxfx4iqsqbb-ags.pam.drv' failed to build
error: 1 dependencies of derivation '/nix/store/fbzf0cszdcds4h93m52w7sicav68cfa0-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/8s9wxgvic20f6pxp5cr6nmii9y25pirl-nixos-system-Simon-s-Tuxedo-InfinityBook-14-Gen8-24.11.20240529.ad57eef.drv' failed to build

Has anyone ever seen this?

(originally posted elsewhere but this room might be more appropriate)I am seeing a peculiar issue: nix build works just fine but when using the flake from my NixOS config I get complaints about Rust version:

error: builder for '/nix/store/p7dajki1blbc0wlsjk86ymh3pi3zh0mk-oblichey-0.0.1.drv' failed with exit code 101;
       last 10 log lines:
       > Finished cargoSetupPostPatchHook
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > Running phase: buildPhase
       > Executing cargoBuildHook
       > ++ env CC_X86_64_UNKNOWN_LINUX_GNU=/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/cc CXX_X86_64_UNKNOWN_LINUX_GNU=/nix/store/9bv7dcvmfcjnmg5mnqw
qlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/c++ CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/cc CC_X86_64_UNKNOWN
_LINUX_GNU=/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/cc CXX_X86_64_UNKNOWN_LINUX_GNU=/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/
bin/c++ CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/cc CARGO_BUILD_TARGET=x86_64-unknown-linux-gnu HOST_C
C=/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/cc HOST_CXX=/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/c++ cargo build -j 8 --ta
rget x86_64-unknown-linux-gnu --frozen --profile release
       > error: package `cubecl v0.1.1 (https://github.com/tracel-ai/cubecl?rev=dd274b6515f853ab1c82db410d6fc7697060f69e#dd274b65)` cannot be built because it requires rustc
 1.79 or newer, while the currently active rustc version is 1.77.2
       > Either upgrade to rustc 1.79 or newer, or use
       > cargo update cubecl@0.1.1 --precise ver
       > where `ver` is the latest version of `cubecl` supporting rustc 1.77.2
       For full logs, run 'nix log /nix/store/p7dajki1blbc0wlsjk86ymh3pi3zh0mk-oblichey-0.0.1.drv'.
error: 1 dependencies of derivation '/nix/store/mxwvym1s7dd4szzs3ccxnwxfx4iqsqbb-ags.pam.drv' failed to build
error: 1 dependencies of derivation '/nix/store/fbzf0cszdcds4h93m52w7sicav68cfa0-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/8s9wxgvic20f6pxp5cr6nmii9y25pirl-nixos-system-Simon-s-Tuxedo-InfinityBook-14-Gen8-24.11.20240529.ad57eef.drv' failed to build

Has anyone ever seen this?

(originally posted elsewhere but this room might be more appropriate)

07:19:06
@simon.brandner:envs.netŠimon Brandner *

I am seeing a peculiar issue: nix build works just fine but when using the flake from my NixOS config I get complaints about Rust version:

error: builder for '/nix/store/p7dajki1blbc0wlsjk86ymh3pi3zh0mk-oblichey-0.0.1.drv' failed with exit code 101;
       last 10 log lines:
       > Finished cargoSetupPostPatchHook
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > Running phase: buildPhase
       > Executing cargoBuildHook
       > ++ env CC_X86_64_UNKNOWN_LINUX_GNU=/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/cc CXX_X86_64_UNKNOWN_LINUX_GNU=/nix/store/9bv7dcvmfcjnmg5mnqw
qlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/c++ CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/cc CC_X86_64_UNKNOWN
_LINUX_GNU=/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/cc CXX_X86_64_UNKNOWN_LINUX_GNU=/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/
bin/c++ CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/cc CARGO_BUILD_TARGET=x86_64-unknown-linux-gnu HOST_C
C=/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/cc HOST_CXX=/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin/c++ cargo build -j 8 --ta
rget x86_64-unknown-linux-gnu --frozen --profile release
       > error: package `cubecl v0.1.1 (https://github.com/tracel-ai/cubecl?rev=dd274b6515f853ab1c82db410d6fc7697060f69e#dd274b65)` cannot be built because it requires rustc
 1.79 or newer, while the currently active rustc version is 1.77.2
       > Either upgrade to rustc 1.79 or newer, or use
       > cargo update cubecl@0.1.1 --precise ver
       > where `ver` is the latest version of `cubecl` supporting rustc 1.77.2
       For full logs, run 'nix log /nix/store/p7dajki1blbc0wlsjk86ymh3pi3zh0mk-oblichey-0.0.1.drv'.
error: 1 dependencies of derivation '/nix/store/mxwvym1s7dd4szzs3ccxnwxfx4iqsqbb-ags.pam.drv' failed to build
error: 1 dependencies of derivation '/nix/store/fbzf0cszdcds4h93m52w7sicav68cfa0-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/8s9wxgvic20f6pxp5cr6nmii9y25pirl-nixos-system-Simon-s-Tuxedo-InfinityBook-14-Gen8-24.11.20240529.ad57eef.drv' failed to build

Has anyone ever seen this?

(originally posted elsewhere but this room might be more appropriate)I am seeing a peculiar issue: nix build works just fine but when using the flake from my NixOS config I get complaints about Rust version:

07:20:15
@curid:matrix.orgCuridwhich rust version does your nixos config use?07:31:36
@simon.brandner:envs.netŠimon BrandnerCurrently none - I made sure I have no rustup, rustc or cargo installed and I am still seeing this...07:50:02
@simon.brandner:envs.netŠimon BrandnerBut seems awfully like the oblichey flake is pulling nixpkgs from my system instead of its own...07:51:09
@curid:matrix.orgCuridyou obviously can't use rust programs without a rust compiler07:51:37
@simon.brandner:envs.netŠimon Brandner Well I am using pkgs.rustPlatform.buildRustPackage to build the oblichey flake 07:52:57
@simon.brandner:envs.netŠimon BrandnerWhich as far as I understand it should get the correct Rust version and compile in a sandboxed env07:53:29
@simon.brandner:envs.netŠimon Brandner The same way it does this when doing nix build 07:53:40
@blitz:chat.x86.lolblitz
In reply to @simon.brandner:envs.net
But seems awfully like the oblichey flake is pulling nixpkgs from my system instead of its own...
Did you use a 'input.nixpkgs.follows' when pulling in the flake?
08:04:20

Show newer messages


Back to Room ListRoom Version: 6