!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

464 Members
Rust111 Servers

Load older messages


SenderMessageTime
7 Sep 2024
@ralith:ralith.comRalithsaves build time, too01:08:10
@k1gen:matrix.orgolk can anyone show me a multi-target flake that uses crane+fenix? I have a working linux->windows cross-compilation flake, but now that I want to add a devShell and a native linux target for nix build to it, I am having problems 08:57:56
@k1gen:matrix.orgolk this isn't really portable... 08:58:57
@antifuchs:asf.computerantifuchs 13:28:53
@k1gen:matrix.orgolkanyone here uses crane for multiple targets?14:20:40
8 Sep 2024
@charles:computer.surgeryCharles
In reply to @k1gen:matrix.org
can anyone show me a multi-target flake that uses crane+fenix? I have a working linux->windows cross-compilation flake, but now that I want to add a devShell and a native linux target for nix build to it, I am having problems
this is pretty involved, idk if it'll help: https://gitlab.computer.surgery/matrix/grapevine-fork/-/blob/main/flake.nix?ref_type=heads
03:00:36
7 Sep 2024
@k1gen:matrix.orgolk * anyone here uses crane for multiple targets? this is the mess I currently have 14:44:41
8 Sep 2024
@k1gen:matrix.orgolkI have compilation issues, again: https://paste.rs/fkyH5.txt I have replaced openssl by rustcrypto, and now this flake fails: https://paste.rs/hLpLu.txt what did I miss?11:01:34
@k900:0upti.meK900That's an ICE11:03:13
@k900:0upti.meK900Are you using Rust nightly?11:03:17
@k1gen:matrix.orgolkyes11:05:48
@k900:0upti.meK900Then you should probably not do that11:07:21
@k900:0upti.meK900And report the issue upstream11:07:24
@k1gen:matrix.orgolk
In reply to @k900:0upti.me
And report the issue upstream
ah, do it's not a nix thing?
11:07:50
@k1gen:matrix.orgolk
In reply to @k900:0upti.me
Then you should probably not do that
I need the nightly toolchain to build std
11:08:08
@k900:0upti.meK900It is not a nix thing11:08:23
@k900:0upti.meK900And you do not need to build std11:08:28
@k1gen:matrix.orgolk

probably, but I want the executable to be small. I don't need it, I want it

11:09:21
@k1gen:matrix.orgolk
In reply to @k900:0upti.me
It is not a nix thing
ok, then I'll report this upstream. thanks
11:09:35
9 Sep 2024
@pandapip-1:matrix.orgPandapip1 joined the room.03:43:32
@julius:mtx.liftm.deˈt͡sɛːzaɐ̯
In reply to @k1gen:matrix.org

probably, but I want the executable to be small. I don't need it, I want it

You could use an older nightly, or make a release version predend it's a nightly with the right flags.
05:17:03
@k1gen:matrix.orgolk

why isn't

        devShells.default = craneLib.devShell {
          toolchain = fenix.packages.${system}.default.toolchain;
        };

installing neither clippy nor rustfmt?

09:27:34
@k900:0upti.meK900Because those aren't part of the default toolchain?09:30:37
@k1gen:matrix.orgolk The default profile includes all of components in the minimal profile, and adds rust-docs, rustfmt, and clippy. This profile will be used by rustup by default, and it’s the one recommended for general use.: https://rust-lang.github.io/rustup/concepts/profiles.html 09:32:23
@k1gen:matrix.orgolk toolchain = fenix.packages.${system}.complete.withComponents [ "cargo" "clippy" "rust-src" "rustc" "rustfmt" ]; doesn't work as well 09:36:09
@declension:matrix.orgdeclension joined the room.16:04:03
@cafkafk:gitter.imcafkafkiirc crane does include those17:05:50
@cafkafk:gitter.imcafkafk¯\_(ツ)_/¯17:05:54
@cafkafk:gitter.imcafkafk

idk may be hallucinating, I have something like this

        craneLibLLvmTools = craneLib.overrideToolchain (
          fenix.packages.${system}.complete.withComponents [
            "cargo"
            "llvm-tools"
            "rustc"
          ]
        );
17:06:51
@cafkafk:gitter.imcafkafkyou shouldn't need to specify the toolchain in the craneLib.devShell either I think17:08:04

Show newer messages


Back to Room ListRoom Version: 6