!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

606 Members
Rust136 Servers

Load older messages


SenderMessageTime
26 Jun 2025
@freexploit:trafkin.comm0lokit says the C compiler cannot buidl the project04:04:31
@freexploit:trafkin.comm0lok I can build the actual crate with nix build 04:04:55
@freexploit:trafkin.comm0lokbut when I do it on the devShell I get that error04:05:05
@freexploit:trafkin.comm0lok

this is the devShell:

        devShells.default = (
          let
            moldDevShell = craneLib.devShell.override {
              # For example, use the mold linker
              mkShell = pkgs.mkShell.override {
                stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.clangStdenv;
              };
            };
          in
            moldDevShell {
              RUSTC_WRAPPER = "${pkgs.sccache}/bin/sccache";
              CARGO_BUILD_TARGET = "x86_64-unknown-linux-musl";
              CARGO_BUILD_RUSTFLAGS = "-C target-feature=+crt-static -C linker=clang -C link-arg=-fuse-ld=${pkgs.mold}/bin/mold";
              inherit (self.checks.${system}.pre-commit-check) shellHook;

              nativeBuildInputs = with pkgs; [pkg-config clang];

              buildInputs = [
                (rustVersion.override {
                  extensions = ["rust-src" "rust-analyzer" "rustc" "cargo" "clippy"];
                })
                self.checks.${system}.pre-commit-check.enabledPackages
                grpc_health_probe
              ];

              packages = [
                pkgs.upx
                pkgs.coreutils
                pkgs.rust-analyzer
                pkgs.skopeo
                pkgs.protobuf
                pkgs.systemfd
                pkgs.bacon
                pkgs.openssl
                pkgs.skopeo
                pkgs.grpcurl
                pkgs.sccache
              ];
            }
        )
04:05:29
@kernz9:matrix.orgkernz9 joined the room.05:39:18
@blaxxmith:matrix.orgblaxxmith joined the room.09:10:12
27 Jun 2025
@redstone-menace:matrix.orgR̴̨͕͇͍̞̮̐̅͆̌̀̉̐͋̈́̃̀͒́̎̅̚̚̚͠͝Ĕ̵̡̛͖͖̟̙̫̱͈̘̞̭͍͍͑̌̄͑̓̋̓̀̈̏̈́͊̇͊͆̉͂̏̀̃̚͘͝͝ͅͅD̶̡̢͔̱̖̮͙͉̘̺͓͍̩̮͈͍͗̃̀̏͌͘͜ͅŚ̸̬̭̯̬͙͇͓̬̩̳̤͚͓̤̩̺͉͖̉͛̓̿̎͊̿̆́̐͂̇͌̄̇̓͘ͅͅT̴̞̫̘̝͇͔̟̪̪̦͂̔̎̀̎ͅŎ̷̡̬̹̪͈̭̣͈̭̭͉̦̖̝̘̪͖͔̥̦̘̻̳Ṋ̶̛̫͈̳̘͚̜̔̋͆̅̈́͊̑͊̉̌̈́̾͑̈́̚ͅË̸̡̨̨̛͇̜̖͔͖̻̟̗̠̙͓̘̗̥͉͇̜͑͆͊͑͑̀̓͒͜͝͝ changed their display name from Redstone to R̴̨͕͇͍̞̮̐̅͆̌̀̉̐͋̈́̃̀͒́̎̅̚̚̚͠͝Ĕ̵̡̛͖͖̟̙̫̱͈̘̞̭͍͍͑̌̄͑̓̋̓̀̈̏̈́͊̇͊͆̉͂̏̀̃̚͘͝͝ͅͅD̶̡̢͔̱̖̮͙͉̘̺͓͍̩̮͈͍͗̃̀̏͌͘͜ͅŚ̸̬̭̯̬͙͇͓̬̩̳̤͚͓̤̩̺͉͖̉͛̓̿̎͊̿̆́̐͂̇͌̄̇̓͘ͅͅT̴̞̫̘̝͇͔̟̪̪̦͂̔̎̀̎ͅŎ̷̡̬̹̪͈̭̣͈̭̭͉̦̖̝̘̪͖͔̥̦̘̻̳Ṋ̶̛̫͈̳̘͚̜̔̋͆̅̈́͊̑͊̉̌̈́̾͑̈́̚ͅË̸̡̨̨̛͇̜̖͔͖̻̟̗̠̙͓̘̗̥͉͇̜͑͆͊͑͑̀̓͒͜͝͝.00:54:17
@redstone-menace:matrix.orgR̴̨͕͇͍̞̮̐̅͆̌̀̉̐͋̈́̃̀͒́̎̅̚̚̚͠͝Ĕ̵̡̛͖͖̟̙̫̱͈̘̞̭͍͍͑̌̄͑̓̋̓̀̈̏̈́͊̇͊͆̉͂̏̀̃̚͘͝͝ͅͅD̶̡̢͔̱̖̮͙͉̘̺͓͍̩̮͈͍͗̃̀̏͌͘͜ͅŚ̸̬̭̯̬͙͇͓̬̩̳̤͚͓̤̩̺͉͖̉͛̓̿̎͊̿̆́̐͂̇͌̄̇̓͘ͅͅT̴̞̫̘̝͇͔̟̪̪̦͂̔̎̀̎ͅŎ̷̡̬̹̪͈̭̣͈̭̭͉̦̖̝̘̪͖͔̥̦̘̻̳Ṋ̶̛̫͈̳̘͚̜̔̋͆̅̈́͊̑͊̉̌̈́̾͑̈́̚ͅË̸̡̨̨̛͇̜̖͔͖̻̟̗̠̙͓̘̗̥͉͇̜͑͆͊͑͑̀̓͒͜͝͝ changed their profile picture.00:55:39
@psibi:matrix.orgpsibi left the room.09:38:19
@nbp:mozilla.orgnbp changed their display name from nbp to nbp — PTO.17:26:33
@emilazy:matrix.orgemilyhttps://guix.gnu.org/en/blog/2025/a-new-rust-packaging-model/ it appears Guix has implemented almost exactly my Rust packaging proposal18:43:11
@emilazy:matrix.orgemily(coming from the other end of fully separate full fat Rust library packages though, rather than from the other end of opaque FOD summaries that we're at)18:44:41
@k900:0upti.meK900They're doing multiple versions of crates though?18:45:33
@k900:0upti.meK900I think18:45:35
@emilazy:matrix.orgemilythat was also my proposal18:46:04
@emilazy:matrix.orgemilywell, deduplicating where possible within one SemVer major - maybe they're not doing that part18:46:27
@k900:0upti.meK900Yeah I don't think they are18:46:44
@k900:0upti.meK900I'm mostly worried about the duplicating dependency resolution part18:46:57
@emilazy:matrix.orgemily cargo_metadata helps somewhat with that 18:49:12
@emilazy:matrix.orgemilythough not entirely18:49:17
28 Jun 2025
@dramforever:matrix.orgdramforever joined the room.07:32:05
@dramforever:matrix.orgdramforever we should probably do #399014 for rust. problem: how do we check for target is not x86(-32)? 07:32:59
@dramforever:matrix.orgdramforever * we should probably do #399014 for rust. problem: how do we check for target is not x86-32? 07:33:10
@qyliss:fairydust.spaceAlyssa RossWe have a rustc wrapper07:40:33
@qyliss:fairydust.spaceAlyssa RossThat I think is to some extent already target-aware07:40:58
@dramforever:matrix.orgdramforeverso the problem afaiaw07:42:56
@dramforever:matrix.orgdramforeveris that cargo really wants to use the same rustc for building build.rs and proc macros as the one for building for target07:43:17
@dramforever:matrix.orgdramforeverso basically it's trying to use the same rustc as both (b, b, b) and (b, b, h)07:43:57
@qyliss:fairydust.spaceAlyssa RossThat's fine, isn't it?07:47:31
@qyliss:fairydust.spaceAlyssa RossThe wrapper can do different things depending on the target07:47:42

Show newer messages


Back to Room ListRoom Version: 6