Nix Rust | 710 Members | |
| Rust | 162 Servers |
| Sender | Message | Time |
|---|---|---|
| 9 Oct 2022 | ||
| What do you guys think about deprecating carnix and cratesIO? https://github.com/NixOS/nixpkgs/issues/195279 | 20:45:36 | |
| 11 Oct 2022 | ||
| 09:35:14 | ||
| trying to package an application that needs the application builds but I can't get it to play any music. | 09:42:30 | |
| 12 Oct 2022 | ||
| 11:49:57 | ||
| Hi, has anyone gotten cargo-udeps working in nix? it requires nightly rust which I can get from the oxalica overlay but I do not know how I call pkgs.cargo-udeps with the nightly rust version. | 11:52:43 | |
| Since you got the nightly from the overlay, if it is applied to pkgs, then shouldn't you have the nightly toolchain in scope? | 11:54:31 | |
| I am not home currently, but will check it out later. | 11:54:44 | |
| i tried something like this:
somehow its not working. will have to retry later. | 12:51:44 | |
| * i tried something like this:
somehow its not working. will have to retry later. | 12:51:50 | |
| That's somewhat close to how I do it and it's working for me, let me see what I had | 13:34:14 | |
| ah no nm I just have it as separate devShells that I use on the fly when I need to call udeps | 13:36:33 | |
| I would expect your version to be roughly correct though, depending on how rustNightly is defined | 13:37:07 | |
ie pkgs.rust-bin.nightly.latest.default | 13:37:49 | |
| Yeah, I think it does work: ``` (pkgs.symlinkJoin { | 13:38:06 | |
| * Yeah, I think it does work: ``` (pkgs.symlinkJoin { | 13:38:20 | |
| * Yeah, I think it does work: | 13:38:38 | |
| cool. thanks for your confirmation. i will retry. | 13:40:01 | |
| So I have retried and it is somewhat working except that it requires internet access because it wants to lookup https://github.com/rust-lang/crates.io-index. Is there any way to avoid this so I can use udeps in the nix sandbox? | 17:06:45 | |
* So I have retried and it is somewhat working except that it requires internet access because it wants to lookup https://github.com/rust-lang/crates.io-index. Is there any way to avoid this so I can use udeps in the nix sandbox? | 17:07:04 | |
| 13 Oct 2022 | ||
| 03:09:06 | ||
is there any reason why buildRustPackage doesn't use builtins.fetchGit for cargo git deps? my understanding is that that would make it so you don't need to specify anything for cargoLock.outputHashes | 15:47:15 | |
| 16:36:07 | ||
| fetchGit itself would still need to receive a checksum for purity, wouldn't it? | 19:07:40 | |
| i thought not requiring a checksum and relying on the commit hash was the point of fetchGit | 19:10:11 | |
| https://nixos.org/manual/nix/stable/language/builtins.html#builtins-fetchGit | 19:10:12 | |
| 15 Oct 2022 | ||
| 00:31:14 | ||
| 16 Oct 2022 | ||
is it harmful to always use stdenv = pkgs.clangStdenv even if you don't use bindgen? | 00:15:13 | |
| i ask because i have a project template for nix + rust projects, and including that (and setting the right environment variable to the right thing) is straightforward but only if you know that's a thing you have to do | 00:15:55 | |
so i'm thinking it could be beneficial to just always use clangStdenv by default from a usability standpoint | 00:16:28 | |
| i suppose i could also include it but have it be commented by default with a note like "uncomment this if you use bindgen" | 00:17:14 | |