| 15 May 2025 |
@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 | Now works right a charm | 16:29:14 |
| Winter joined the room. | 17:53:30 |
Winter | doing the 1.87.0 bump | 17:53:42 |
Winter | would love to get https://github.com/NixOS/nixpkgs/pull/401281 in the same cycle as we can drop the patch | 17:54:13 |
Winter | 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 | given nobody complained I don't think it's urgent | 18:25:55 |
Winter | This rustc builds a lot quicker than 1.86.0 o.O | 18:28:03 |
Winter | wonder what kind of dark magic they did | 18:28:12 |
Winter | like, a whole 20 minutes faster | 18:28:41 |
emily | that doesn't sound right | 19:18:16 |
Winter | bump is imminent | 19:36:45 |
Winter | * bump is imminent fwiw | 19:36:52 |
Winter | https://github.com/NixOS/nixpkgs/pull/407444 -- finally took the chance to drop libiconv from darwin's explicit closure | 19:46:00 |
staberinde | 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 |
Alyssa Ross | buildRustPackage doesn't use crateOverrides | 20:02:05 |
Alyssa Ross | they're for buildRustCrate | 20:02:38 |
staberinde | 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 | Currently I have
| 20:03:34 |
staberinde | * 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 | * 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 |
Alyssa 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 |
staberinde | Which is failing at the point of building the vendored package archive with: > pkg-config exited with status code 1 > > PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags fuse3 fuse3 >= 3.0.0 > > The system library fuse3 required by crate fuser was not found. > The file fuse3.pc needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory. > The PKG_CONFIG_PATH environment variable is not set. > > HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing fuse3.pc. | 20:06:15 |
staberinde | Ah okay, how would I provide a do that for a dependent crate? buildInputs comes in somewhere I would guess but I can't see what that would look like | 20:08:14 |
K900 | What you're doing should work | 20:08:27 |
staberinde | that's what I would have thought, but I'm not that experienced with the rust ecosystem within nixpkgs | 20:18:43 |
K900 | Are you on 24.11 or unstable? | 20:28:19 |
staberinde | 24.11 | 20:29:15 |
K900 | The file is definitely there for me on unstable | 20:29:29 |
K900 | I have not checked 24.11 | 20:29:33 |