!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

678 Members
Rust153 Servers

Load older messages


SenderMessageTime
15 May 2025
@jh-devv:matrix.org@jh-devv:matrix.orgI can seem to repro this in a normal zsh shell too15:54:35
@jh-devv:matrix.org@jh-devv:matrix.orgIt basically complains that the targets are build with the wrong version of rust (???)15:55:30
@jh-devv:matrix.org@jh-devv:matrix.orgLike15:55:48
@jh-devv:matrix.org@jh-devv:matrix.org compiled by <insert nix store path> and not <insert current rust version> 15:56:16
@k900:0upti.meK900What exact command are you running in your shell?15:56:40
@jh-devv:matrix.org@jh-devv:matrix.org
In reply to @k900:0upti.me
What exact command are you running in your shell?
let me try if I can find it
15:57:56
@jh-devv:matrix.org@jh-devv:matrix.orgI tried it yesterday15:58:00
@jh-devv:matrix.org@jh-devv:matrix.org
In reply to @k900:0upti.me
What exact command are you running in your shell?
I think the issue with Android studio was that .direnv was not loaded at the right time
16:28:51
@jh-devv:matrix.org@jh-devv:matrix.org

Did

          android-studio = pkgs.android-studio.overrideAttrs (oldAttrs: {
            propagatedBuildInputs = [ toolchain ];
            meta.license = with lib.licenses; [
              asl20 # any free license
            ];
          });
16:29:09
@jh-devv:matrix.org@jh-devv:matrix.orgNow works right a charm16:29:14
@winter:catgirl.cloudWinter joined the room.17:53:30
@winter:catgirl.cloudWinterdoing the 1.87.0 bump17:53:42
@winter:catgirl.cloudWinterwould love to get https://github.com/NixOS/nixpkgs/pull/401281 in the same cycle as we can drop the patch17:54:13
@winter:catgirl.cloudWinter We've been missing some docs deps on at least macOS for several releases, but I don't feel like building more than two rustcs today so I'm going to leave that for a separate PR. 18:25:34
@winter:catgirl.cloudWintergiven nobody complained I don't think it's urgent18:25:55
@winter:catgirl.cloudWinterThis rustc builds a lot quicker than 1.86.0 o.O18:28:03
@winter:catgirl.cloudWinterwonder what kind of dark magic they did18:28:12
@winter:catgirl.cloudWinterlike, a whole 20 minutes faster18:28:41
@emilazy:matrix.orgemilythat doesn't sound right19:18:16
@winter:catgirl.cloudWinterbump is imminent19:36:45
@winter:catgirl.cloudWinter* bump is imminent fwiw19:36:52
@winter:catgirl.cloudWinter https://github.com/NixOS/nixpkgs/pull/407444 -- finally took the chance to drop libiconv from darwin's explicit closure 19:46:00
@staberinde:matrix.orgstaberinde I'm fairly sure this is a stupid question, but I can't find anything in the documentation that directly answers this. What's the easiest way to use an updated set of crateOverrides with buildRustPackage? 20:01:43
@qyliss:fairydust.spaceAlyssa RossbuildRustPackage doesn't use crateOverrides20:02:05
@qyliss:fairydust.spaceAlyssa Rossthey're for buildRustCrate20:02:38
@staberinde:matrix.orgstaberinde exactly, but I'm finding that I need include a nix dependency that I need to my buildRustPackage invocation to see 20:03:21
@staberinde:matrix.orgstaberinde

Currently I have

20:03:34
@staberinde:matrix.orgstaberinde *

Currently I have

borg-tui = pkgs.rustPlatform.buildRustPackage (finalAttrs: rec {
    pname = "borgtui";
    version = "fdcf13ba063a9e8516e5bc5f679af5504304819d";
    src = pkgs.fetchFromGitHub {
      owner = "dpbriggs";
      repo = pname;
  rev = version;
  sha256 = "7UbwW53HTM4oTbDnNruwjtF0KrnhoiCYXWl0CbXfMSk=";
};
nativeBuildInputs = [
  pkgs.pkg-config
];
bulldInputs = [
  pkgs.fuse3
];
cargoHash = "sha256-7F87unpr3OoY9SFBS2iwKhk2khYKH5w5xaENHUwnqC0=";

});

20:04:12
@staberinde:matrix.orgstaberinde *

Currently I have

borg-tui = pkgs.rustPlatform.buildRustPackage (finalAttrs: rec {
    pname = "borgtui";
    version = "fdcf13ba063a9e8516e5bc5f679af5504304819d";
    src = pkgs.fetchFromGitHub {
      owner = "dpbriggs";
      repo = pname;
      rev = version;
      sha256 = "7UbwW53HTM4oTbDnNruwjtF0KrnhoiCYXWl0CbXfMSk=";
    };
    nativeBuildInputs = [
      pkgs.pkg-config
    ];
    bulldInputs = [
      pkgs.fuse3
    ];
    cargoHash = "sha256-7F87unpr3OoY9SFBS2iwKhk2khYKH5w5xaENHUwnqC0=";
  });
20:04:56
@qyliss:fairydust.spaceAlyssa Ross
In reply to @staberinde:matrix.org
exactly, but I'm finding that I need include a nix dependency that I need to my buildRustPackage invocation to see
yes, with buildRustPackage you have to specify the non-Rust dependencies yourself
20:06:08

Show newer messages


Back to Room ListRoom Version: 6