!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

705 Members
Rust164 Servers

Load older messages


SenderMessageTime
14 May 2022
@luke:vuksta.comLuke I’d like to be able to just do nix build, navigate to the result directory, start a python shell, and try to import from there… 19:20:53
15 May 2022
@dpc:matrix.orgdpc Luke: Make it flakes, use one flake inside the other? Never done that, and my nix-fu is weak but that's my high level understanding of how to approach it. 18:30:01
16 May 2022
@denommus:matrix.orgdenommus joined the room.18:58:00
@denommus:matrix.orgdenommus hey, anyone besides me has a problem with cargo under nix develop in which bindgen and all the dependencies that use it are always rebuilt? 18:58:12
18 May 2022
@jhu:pikaviestin.fiJhu joined the room.06:55:32
@deep6:matrix.orgdeep6 joined the room.21:46:32
20 May 2022
@denna:matrix.orgolaf joined the room.15:58:12
22 May 2022
@feathecutie:tchncs.defeathecutie joined the room.16:36:32
24 May 2022
@slby:matrix.orgslbyI am having problems running cargo clippy in a ci from nix, does anyone have an example of running it? 15:35:18
@oliver:matrix.nrp-nautilus.iooliver slby: check out https://ipetkov.dev/blog/introducing-crane/ 20:35:16
@oliver:matrix.nrp-nautilus.iooliverHas anyone managed to build a Yew app w/ nix?20:35:42
@oliver:matrix.nrp-nautilus.iooliver * Has anyone managed to build a Yew (or other WASM) app w/ nix?20:35:55
@a-kenji:matrix.orga-kenji
In reply to @oliver:matrix.nrp-nautilus.io
Has anyone managed to build a Yew app w/ nix?
The plugins here are built with nix: https://github.com/zellij-org/zellij
20:47:12
@oliver:matrix.nrp-nautilus.iooliver Thanks a-kenji. Do you happen to know how this line works? Does buildRustPackage have network access (unlike mkDerivation)? Or are the dependencies pre-fetched somehow? 20:57:35
@a-kenji:matrix.orga-kenjiSorry, I have problems figuring out which line you linked.20:59:51
@a-kenji:matrix.orga-kenjiBut yes, the dependencies are pre fetched.21:00:00
@bernardo:matrix.parity.iobernardo left the room.21:00:12
@oliver:matrix.nrp-nautilus.iooliver

Ah, just the cargo build line in https://github.com/zellij-org/zellij/blob/main/nix/plugins.nix.

Does buildRustPackage do that automatically, or is the pre-fetching handled somewhere else in the nix files?

21:08:45
@a-kenji:matrix.orga-kenji
In reply to @oliver:matrix.nrp-nautilus.io

Ah, just the cargo build line in https://github.com/zellij-org/zellij/blob/main/nix/plugins.nix.

Does buildRustPackage do that automatically, or is the pre-fetching handled somewhere else in the nix files?

It is integrated into the buildRustPackage
21:52:28
@a-kenji:matrix.orga-kenji
In reply to @oliver:matrix.nrp-nautilus.io

Ah, just the cargo build line in https://github.com/zellij-org/zellij/blob/main/nix/plugins.nix.

Does buildRustPackage do that automatically, or is the pre-fetching handled somewhere else in the nix files?

But you can do it manually with cargoDeps, I think. If you search GH for that I think you will get some examples.
21:52:53
@oliver:matrix.nrp-nautilus.iooliverThanks for the tips!21:53:03
26 May 2022
@elvishjerricco:matrix.orgElvishJerricco joined the room.05:44:46
@elvishjerricco:matrix.orgElvishJerricco What would be the equivalent nix platform name for rust's aarch64-unknown-none-softfloat? 05:45:10
@elvishjerricco:matrix.orgElvishJerriccoRedacted or Malformed Event06:31:59
@notgne2:wizbos.clubnotgne2 joined the room.22:20:53
27 May 2022
@yellovv:matrix.orgyellovv joined the room.15:20:20
28 May 2022
@mic92:nixos.devMic92 (Old) changed their display name from Mic92 to Mic92 (Old).10:27:02
@mic92:nixos.devMic92 (Old) invited @joerg:thalheim.ioMic92.11:06:56
@joerg:thalheim.ioMic92 joined the room.11:06:56
@mic92:nixos.devMic92 (Old) left the room.11:09:34

Show newer messages


Back to Room ListRoom Version: 6