| 20 Oct 2022 |
a-kenji | * rustPlatform.buildRustPackage {
buildType = "debug";
}
| 18:37:04 |
Charles ⚡️ | it is | 18:37:18 |
a-kenji | No that is native nixpkgs | 18:37:16 |
Charles ⚡️ | their github readme documents this stuff | 18:37:29 |
Charles ⚡️ | also make sure debug mode is what you want | 18:37:39 |
Charles ⚡️ | if you just want stack traces for panics then debug mode might not be desirable over just enabling symbols | 18:38:00 |
aktaboot | couldn't find buildType in their readme, but it seems to be working | 18:39:31 |
aktaboot | there is cargoBuildOptions though | 18:39:44 |
Charles ⚡️ | In reply to @a-kenji:matrix.org No that is native nixpkgs oh | 18:39:47 |
aktaboot | hmm buildType did not work | 18:48:30 |
aktaboot | * hmm buildType="debug"; did not work | 18:49:43 |
a-kenji | In buildRustPackage? | 18:50:38 |
aktaboot | oh no, you're right I did that in naersk.buildPackage | 18:52:00 |
a-kenji | Oh yeah sorry, I don't know if that would work in naersk. | 18:52:29 |
Charles ⚡️ | that'll do it then | 18:52:30 |
Charles ⚡️ | you need to figure out what naersk's option is | 18:52:38 |
aktaboot | yeah I have to learn some nix | 18:52:56 |
aktaboot | In reply to @charles:computer.surgery if you just want stack traces for panics then debug mode might not be desirable over just enabling symbols how do I just enable the symbols | 18:58:57 |
Charles ⚡️ | In reply to @charles:computer.surgery i have no idea but my guess is you want to set RUSTFLAGS to include something ^ | 18:59:11 |
aktaboot | from what I'm getting they're the same in Rust | 18:59:12 |
Charles ⚡️ | first i would look up how to do it in normal rust, and then figure out how to get naersk to apply it | 18:59:49 |
aktaboot | yeah it's RUSTFLAGS='-g' | 19:01:23 |
| 24 Oct 2022 |
Charles ⚡️ | anyone want to review my first nixpkgs submission? https://github.com/NixOS/nixpkgs/pull/197453 | 01:01:21 |
| Charles ⚡️ removed their profile picture. | 01:28:56 |
| Charles ⚡️ set a profile picture. | 01:30:37 |
Charles ⚡️ | nevermind lol apparently this is a dupe | 01:53:46 |
| 26 Oct 2022 |
Alyssa Ross | joerg: do you know what reads these environment variables? (You authored the commit that added them.) I can't find any code that looks like it reads them apart from the Rust compiler bootstrap, which doesn't use the Cargo hooks. https://github.com/NixOS/nixpkgs/blob/2aad050c9f6aa846c4ce269f573eba1e664fe6fd/pkgs/build-support/rust/hooks/cargo-build-hook.sh#L30-L33 | 18:26:23 |
| 27 Oct 2022 |
Mic92 | qyliss: https://github.com/rust-lang/cc-rs#external-configuration-via-environment-variables | 05:34:51 |
Mic92 | at least cc-rs | 05:35:12 |
Alyssa Ross | ahh, so it's just a crate | 05:56:38 |