Nix Rust | 709 Members | |
| Rust | 162 Servers |
| Sender | Message | Time |
|---|---|---|
| 5 Sep 2022 | ||
| I'm trying to build embedded rust firmware with nix, but not having much success with the recommendations in the rust-section of the nix manual, if anyone here has experience with this I could use some help 😃 https://discourse.nixos.org/t/building-embedded-rust-firmware-with-nix/21477 | 16:18:39 | |
| how do i make a rust compiler with the wasm32-wasi target enabled? | 16:56:27 | |
| I used the oxalica overlay here: https://github.com/zellij-org/zellij/blob/main/.nix/plugins.nix | 16:57:49 | |
| This is where the toolchain is specified: https://github.com/zellij-org/zellij/blob/main/rust-toolchain.toml, but i am not quite sure how to do it without an overlay. | 16:59:00 | |
| :+1: thanks | 17:04:55 | |
| 6 Sep 2022 | ||
| 23:50:07 | ||
| 7 Sep 2022 | ||
| Can I somehow do Basically when I have to temporarily work on Rust project that isn't flakified, I just want to get the dev env working without having some extra files checked in. | 18:25:00 | |
| Yes | 18:25:59 | |
| With this syntax you don't need a flake. | 18:26:25 | |
Oh, I see. I got myself confused then by using .# initially . Thanks. | 18:30:19 | |
| And you probably want someting like
for enix. | 18:31:21 | |
| * And you probably want someting like
for fenix. | 18:31:24 | |
One last thing nix shell nixpkgs#rust-analyzer nixpkgs#openssl.dev nixpkgs#openssl nixpkgs#pkg-config github:nix-community/fenix#complete.toolchain does not add openssl to PKG_CONFIG_PATH | 18:33:26 | |
| What can I do about it, other than add it manually? | 18:33:55 | |
use a devShell with all your dependencies in it rather than nix shell | 18:36:46 | |
| I am not too sure about that, does it work with nix develop? It doesn't know what kind of input openssl is. so it doesn't prepare it. | 18:37:02 | |
| 8 Sep 2022 | ||
I think you would need to set LD_LIBRARY_PATH to make it work with nix develop | 00:54:00 | |
nix-shell should work though | 00:54:22 | |
| https://github.com/fedimint/fedimint/blob/master/docs/nix-ci.md in case it's of any use it interest to anyone | 15:52:00 | |
| * https://github.com/fedimint/fedimint/blob/master/docs/nix-ci.md in case it's of any use it interest to anyone Understanding Fedimint's Nix-based building system and CI | 15:52:33 | |
| * https://github.com/fedimint/fedimint/blob/master/docs/nix-ci.md Understanding Fedimint's Nix-based building system and CI in case it's of any use it interest to anyone | 16:08:47 | |
| 12 Sep 2022 | ||
| 21:40:20 | ||
| 13 Sep 2022 | ||
| 17:44:41 | ||
| anyone's using vscode and rust-analyzer? I've tried about a dozen configurations now and each one breaks in a new and exciting way :) what I want to have is nix shell that's capable of building a rust project and packaging it into docker with the openssl (rustls is known broken for my use case) and a working rust-analyzer so I could write the code with some LSP support. My very latest iteration was trying to use
| 17:49:14 | |
| oh Xe Iaso, fancy seeing you around here. | 17:49:36 | |
| Hi, i exist | 17:49:52 | |
| I'm in a meeting right now so I'm at like 1/4th brain | 17:50:03 | |
also: I think rust-analyzer works because I got .envrc with use flake and a direnv plugin for vscode but that's some arcane magic at that point. | 17:50:22 | |
Download image.png | 17:57:46 | |
| openssl works. kinda. | 17:57:51 | |