!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

708 Members
Rust163 Servers

Load older messages


SenderMessageTime
10 Feb 2022
@x10an14:matrix.orgx10an14

Is there any "low barrier of entry" flake template one can utilize to get a flaked rust nix project where

  1. direnv/nix develop works - and appends to $PATH, as opposed to overwriting it? (my experience with naersk)
  2. Gives (maybe even documents) an easy-to-find list where one can add nix packages such as cargo-edit?
12:20:59
@x10an14:matrix.orgx10an14

I've been looking at the below, and I feel like they're out of my competency/comfort zone:

  • https://github.com/yusdacra/nix-cargo-integration
  • https://github.com/numtide/devshell
  • https://github.com/nmattia/naersk
  • https://github.com/loophp/rust-shell/
12:22:40
@tomberek:matrix.orgtomberek x10an14: it's not a template, but I've been hacking on this project and it's been nice, should be easy to adopt. https://github.com/kamadorueda/alejandra/blob/main/flake.nix 14:54:14
@x10an14:matrix.orgx10an14
In reply to @tomberek:matrix.org
x10an14: it's not a template, but I've been hacking on this project and it's been nice, should be easy to adopt. https://github.com/kamadorueda/alejandra/blob/main/flake.nix

Thanks! I'll take a closer look later today =)

This is where I ended up meanwhile after lots of bashing forehead against the dreaded learning curve's wall: https://git.sr.ht/~x10an14/pass-steam/tree/main/item/flake.nix
(Not sure I really understand it yet, but it works for most. Just breaks bash-completion unfortunately).

14:58:30
11 Feb 2022
@x10an14:matrix.orgx10an14 Anyone here willing to help me along debugging/figuring out Windows cross-compile? https://paste.sr.ht/~x10an14/1f03145beafb08f682f88b414bf174a7c2491504 I've searched and found some tips at both fenix and naersk, with the respective fixes/suggestions mentioned in my flake.nix to no avail =/ 14:47:12
@tomberek:matrix.orgtomberek x10an14: i was going to have some office hours this afternoon and also working on getting rust to cross compile something to musl. Haven't done windows yet, but would be good to clarify. 18:09:08
@tomberek:matrix.orgtomberek x10an14: available? 22:27:35
@x10an14:matrix.orgx10an14
In reply to @tomberek:matrix.org
x10an14: available?
In an hour or two? Not right now =( Thanks for reaching out though!
22:28:54
@x10an14:matrix.orgx10an14Are the office hours gonna be updated here (or somewhere else) moving forwards? https://discourse.nixos.org/t/nix-office-hours/11945/4522:29:33
@tomberek:matrix.orgtomberekNew format and announcements have been going here: https://discourse.nixos.org/t/general-nix-office-hours/1501922:32:51
@x10an14:matrix.orgx10an14
In reply to @tomberek:matrix.org
New format and announcements have been going here: https://discourse.nixos.org/t/general-nix-office-hours/15019
Awesome, thanks! =) I'll hop in once I'm done with what I'm up to right now!
22:33:38
12 Feb 2022
@marius851000:newsmatrix.pmdcollab.orgmarius851000 left the room.15:02:36
14 Feb 2022
@test:boba.bestTseb (Old) changed their display name from Tseb to Tseb (Old).12:52:32
@seb:the-apothecary.clubTseb joined the room.13:34:17
17 Feb 2022
@signal-walker:matrix.orgAsh joined the room.13:56:37
18 Feb 2022
@test:boba.bestTseb (Old) removed their profile picture.11:29:58
@test:boba.bestTseb (Old) removed their display name Tseb (Old).11:55:38
@test:boba.bestTseb (Old) left the room.13:08:18
@bachp:matrix.orgPascal Bach joined the room.13:48:13
19 Feb 2022
@brian:maven-group.orgbrian joined the room.15:28:26
22 Feb 2022
@0x4a6f:matrix.org[0x4A6F] colemickens 🏳️‍🌈: AFAIK cargoLock doesn't work for inclusion into nixpkgs. 20:41:46
@colemickens:matrix.orgcolemickens:( okay, I was a bit afraid of that20:42:08
* @colemickens:matrix.orgcolemickens isn't sure he gets why/how that is though20:42:30
@0x4a6f:matrix.org[0x4A6F] I've tried cargoLock in following commit and was send away with this error. 20:46:14
@0x4a6f:matrix.org[0x4A6F] Gazing at rfcs#109... 20:50:36
@cole-h:matrix.orgcole-hPretty sure cargoLock is IFD unless you copy the Cargo.lock into the nix expression(s directory)20:50:46
@cole-h:matrix.orgcole-h Rather, trying to use cargoLock.lockFile = src + "/Cargo.lock"; is IFD. Referencing the actual file by copying it into Nixpkgs is (maybe? probably?) not. 20:51:35
@hexa:lossy.networkhexayep, copying it into nixpkgs is fine21:05:16
@0x4a6f:matrix.org[0x4A6F]Thanks, but I'll stick to cargoSha256 for now. Cargo.lock is mostly in pkgs/build-support.22:28:40
27 Feb 2022
@slby:matrix.orgslbyHey! If I set cargoRoot, is it also possible to point cargoLock to a different file?19:03:03

Show newer messages


Back to Room ListRoom Version: 6