!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

836 Members
165 Servers

Load older messages


SenderMessageTime
18 Aug 2024
@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)

19:57:49
19 Aug 2024
@aos1:matrix.orgaos My only guess here is that you have channels active and your nix build is using the nixpkgs from your path, while your flake is using a nixpkgs from your input and they are different 02:48:17
@simon.brandner:envs.netŠimon BrandnerI did find out I had some channels on my system but removing them did not do the trick...07:06:22
@simon.brandner:envs.netŠimon Brandner Will ask in #rust:nixos.org as well... 07:19:01
@simon.brandner:envs.netŠimon BrandnerHow would I handle a flake input that is a Git LFS repo?08:51:04
@simon.brandner:envs.netŠimon BrandnerThis seems to contain some suggestions: https://nixos-and-flakes.thiscute.world/other-usage-of-flakes/inputs10:03:18
@lxsameer:matrix.orglxsameerhey folks, do you know any solution to conditional flake inputs?10:46:47
@morgrimm:matrix.orgremi-gelinas
In reply to @lxsameer:matrix.org
hey folks, do you know any solution to conditional flake inputs?
How do you mean? Unused flake inputs in the attribute you're evaluating/building are copied into the store but lazily used iirc
10:47:42
@morgrimm:matrix.orgremi-gelinas There isn't really a conditional flake input 10:47:52
@lxsameer:matrix.orglxsameerI have a personal repo of a bunch of flake-parts module. I was thinking it would be cool to include haskell related inputs only if my haskell module is enabled.10:48:52
@simon.brandner:envs.netŠimon Brandner
In reply to @simon.brandner:envs.net
This seems to contain some suggestions: https://nixos-and-flakes.thiscute.world/other-usage-of-flakes/inputs
This did not help much since https://github.com/user/repo/archive/main.tar.gz does not include LFS files...
16:47:08
20 Aug 2024
@weethet:catgirl.cloudWeetHet joined the room.00:09:39
@h4rdstyl3z:matrix.orgh4rdstyl3zRedacted or Malformed Event02:03:26
@azahi:azahi.ccazahi left the room.09:16:52
21 Aug 2024
@ripi:matrix.orgripi joined the room.10:26:31
@jake:hillion.co.ukJake Hillion left the room.11:30:50
22 Aug 2024
@asmundesen:matrix.orgArtur Manuel joined the room.12:57:51
@asmundesen:matrix.orgArtur Manuel changed their profile picture.14:53:04
@niko:puppygock.gaynyanbinary 🏳️‍⚧️ left the room.17:20:37
24 Aug 2024
@asmundesen:matrix.orgArtur Manuelis there any better way of doing nix flake updates like this?02:18:32
@asmundesen:matrix.orgArtur ManuelDownload fzuplock.py02:18:33
@asmundesen:matrix.orgArtur Manueli am aware that in later versions of nix you can just do `nix flake update (inputs) --flake (flake-dir) but i moved to 2.18 again after some nixpkgs weirdness02:20:15
@asmundesen:matrix.orgArtur Manuel i am aware that in later versions of nix you can just do nix flake update (inputs) --flake (flake-dir) but i moved to 2.18 again after some nixpkgs weirdness 02:20:23
@asmundesen:matrix.orgArtur Manuel
In reply to@asmundesen:matrix.org
fzuplock.py
i meant flake.lock updates, my bad

should still be inferrable however
02:21:51
26 Aug 2024
@von.dev:matrix.orgvon.dev joined the room.13:06:53
27 Aug 2024
@oliver.falvai:oliverfalvai.xyz@oliver.falvai:oliverfalvai.xyz joined the room.10:51:40
@aloisw:kde.org@aloisw:kde.org left the room.17:20:35
28 Aug 2024
@ereslibre:matrix.org@ereslibre:matrix.org left the room.07:37:35
@rosssmyth:matrix.org@rosssmyth:matrix.org joined the room.19:55:40
29 Aug 2024
@artur:glasgow.socialmoved to @amadaluzia:tchncs.de joined the room.05:50:48

Show newer messages


Back to Room ListRoom Version: 6