!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

465 Members
Rust111 Servers

Load older messages


SenderMessageTime
8 Sep 2024
@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
@cafkafk:gitter.imcafkafk

https://crane.dev/API.html?highlight=craneLib.dev#cranelibdevshell

Note that the current toolchain's cargo, clippy, rustc, and rustfmt packages will automatically be added to the devShell.

17:08:12
@kiike:matrix.orgEnric Morales joined the room.17:41:36
@lulu-berlin:matrix.orgLulu joined the room.20:31:33
10 Sep 2024
@adis:blad.is@adis:blad.is left the room.09:42:36
@artur:glasgow.social(artur 'manuel) changed their display name from (lambda (u) (format nil "~A lost their email!" u)) "Artur Manuel" to Artur Manuel (on break).17:32:11
@artur:glasgow.social(artur 'manuel) changed their profile picture.17:34:33
@artur:glasgow.social(artur 'manuel) changed their display name from Artur Manuel (on break) to (lambda (u) (format nil "~A is not using Matrix right now." u)) "Artur Manuel".17:36:12
@creepinson:matrix.orgTheo Paris Am I correct that the only way to patch rustc outside of nixpkgs is to copy pkgs/development/compilers/rust/1_80.nix outside of nixpkgs to override rustcPatches? 20:20:12
@creepinson:matrix.orgTheo Paris * Am I correct that the only way to patch rustc outside of nixpkgs is to copy pkgs/development/compilers/rust/1_80.nix toverride rustcPatches? 20:20:20
@creepinson:matrix.orgTheo Paris * Am I correct that the only way to patch rustc outside of nixpkgs is to copy pkgs/development/compilers/rust/1_80.nix to override rustcPatches? 20:20:29
@qyliss:fairydust.spaceAlyssa RossYou should be able to overrideAttrs the unwrapped Rust compiler20:21:28
@creepinson:matrix.orgTheo ParisHow do I override the unwrapped rust compiler though? rustc-unwrapped doesn't seem to exist 20:22:10
@qyliss:fairydust.spaceAlyssa Ross

wrapRustc (rustc.unwrapped.overrideAttrs ({ patches ? [], ... }: { patches = patches ++ [ ./my.patch ]; }))

20:22:11
@creepinson:matrix.orgTheo ParisOh20:22:19
11 Sep 2024
@kiike:matrix.orgEnric Morales i had problems cross-compiling for thumb8.main on nixpkgs. From the rustc docs, the bootstrap/configure script is effectively just a convenience layer for the true configuration resource: the config.toml. I went ahead and adapted rustc.nix so that, instead of relying on configure, we generate a config.toml from a rustc config attrset. Initially, i did that just to solve my issue, and learn a bit more on the build process, but I think this might be useful, as it would be less finicky, powerful, and overridable 07:58:23
@kiike:matrix.orgEnric Moraleswould that be desirable at all?07:58:34
@kiike:matrix.orgEnric Morales * i had problems cross-compiling for thumb8.main on nixpkgs, as the bootstrap process would always error out. From the rustc docs, the bootstrap/configure script is effectively just a convenience layer for the true configuration resource: the config.toml. I went ahead and adapted rustc.nix so that, instead of relying on configure, we generate a config.toml from a rustc config attrset. Initially, i did that just to solve my issue, and learn a bit more on the build process, but I think this might be useful, as it would be less finicky, powerful, and overridable 07:59:25

Show newer messages


Back to Room ListRoom Version: 6