!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

675 Members
Rust153 Servers

Load older messages


SenderMessageTime
23 Jan 2022
@bernardo:matrix.parity.iobernardo
In reply to @zhaofeng:zhaofeng.li
Ok, try a newer nightly version where this has already stabilized
switched the date to 2021-12-30 and it worked! thanks!!
02:20:16
@bernardo:matrix.parity.iobernardo

now I'm trying to build https://github.com/paritytech/canvas with the same shell.nix mentioned before..
running into this:

...
  = note: /nix/store/rbqplhv2s539liymkvm3zbjj9lvgzpd5-binutils-2.35.2/bin/ld: final link failed: No space left on device
          collect2: error: ld returned 1 exit status


LLVM ERROR: IO failure on output stream: No space left on device
The following warnings were emitted during compilation:

pretty confusing, since I do have plenty of space on my disk 🤔

14:38:43
@mikroskeem:d0.eeMark
In reply to @bernardo:matrix.parity.io

now I'm trying to build https://github.com/paritytech/canvas with the same shell.nix mentioned before..
running into this:

...
  = note: /nix/store/rbqplhv2s539liymkvm3zbjj9lvgzpd5-binutils-2.35.2/bin/ld: final link failed: No space left on device
          collect2: error: ld returned 1 exit status


LLVM ERROR: IO failure on output stream: No space left on device
The following warnings were emitted during compilation:

pretty confusing, since I do have plenty of space on my disk 🤔

/tmp mounted as tmpfs?
14:53:41
@mikroskeem:d0.eeMarkincrease its size14:53:50
@bernardo:matrix.parity.iobernardo
In reply to @mikroskeem:d0.ee
increase its size
I did $ sudo mount -o remount,size=30G /tmp, which is confirmed by df -h... but the problem remains :(
15:18:26
@mikroskeem:d0.eeMarkunsure atm15:19:08
@bernardo:matrix.parity.iobernardo

ok I think I figured it out... after seeing this error message:

error: failed to write /run/user/1000/rustchcAPeP/lib.rmeta: No space left on device (os error 28)

so I ran:

$ sudo mount -o remount,size=10G /run/user/1000
15:34:20
@mikroskeem:d0.eeMarkaha15:41:46
27 Jan 2022
@drupol:matrix.orgPol joined the room.08:55:37
31 Jan 2022
@bernardo:matrix.parity.iobernardo changed their profile picture.11:49:58
1 Feb 2022
@aktaboot:matrix.orgaktaboot joined the room.12:03:06
@coolshaurya:community.rscoolshaurya joined the room.16:47:51
3 Feb 2022
@ultranix:matrix.orgtgunnoe changed their display name from ultranix to tgunnoe.13:34:10
@ereslibre:matrix.orgereslibre set a profile picture.20:23:04
4 Feb 2022
@withoutwithin:matrix.orgXe Iaso changed their display name from Xe to Xe Iaso.00:44:02
@marius851000:newsmatrix.pmdcollab.orgmarius851000 joined the room.12:46:53
5 Feb 2022
@js:ukvly.orgJulian Stecklina changed their display name from julianst to Julian Stecklina.10:26:08
6 Feb 2022
@mixedCase:matrix.orgAndrés Rodríguez joined the room.18:24:15
@mixedCase:matrix.orgAndrés RodríguezHey everyone. I'm trying to start a Rust project and would like to have Nix working from the start. Is there any boilerplate for this that's more up to date than https://github.com/srid/rust-nix-template?18:26:38
@tomberek:matrix.orgtomberek Andrés Rodríguez: there is a template here as well. We'd like to improve the quality of them so that this becomes the quick/easy answer for anyone beginning a Rust project. Please file an issue (or PR!) in that repo with anything you learn so we can improve. 19:19:00
@tomberek:matrix.orgtomberek(https://github.com/NixOS/templates/blob/master/rust-web-server/flake.nix)19:19:55
@mixedCase:matrix.orgAndrés Rodríguez
In reply to @tomberek:matrix.org
Andrés Rodríguez: there is a template here as well. We'd like to improve the quality of them so that this becomes the quick/easy answer for anyone beginning a Rust project. Please file an issue (or PR!) in that repo with anything you learn so we can improve.
Thank you! I see two templates there. rust-web-server and rust. The rust one I see is Naersk-based, and Naersk's very own Flakes example fails to execute nix run. rust-web-server seems to be using https://github.com/edolstra/import-cargo, hadn't heard of that!. I'll give it a go. Flake looks a bit complex for my needs and does some duplication seemingly to not use flake-utils, but I'll see what I can trim :D
19:24:49
@mixedCase:matrix.orgAndrés RodríguezJust tried using it, doesn't seem to work with nix run either :(19:30:29
@tomberek:matrix.orgtomberekthere's a bit of churn in the rust2nix tooling at the moment. i've been meaning to look into it......19:30:59
@mixedCase:matrix.orgAndrés RodríguezThat's unfortunate. I'll see if I can get away with a devShell to get development going and maybe take a stab at it again in the future. Thanks for the info though!19:32:36
@mixedCase:matrix.orgAndrés RodríguezWell, I got stubborn again. Naersk does work with nix run. But absolutely everything involved must be in version control. I'm assuming it's the same reason why Nix flakes don't work unless staged and I will never stop hating that about them :) At least got it to work!19:46:05
8 Feb 2022
@akadude:matrix.orgakadude joined the room.02:08:26
@akadude:matrix.orgakadudeHey, I am coming from here: https://github.com/oxalica/rust-overlay/issues/72. How do I use nightly channel? Here is my default.nix: https://gitlab.com/aka_dude/lobsters-best-bot/-/blob/nix-build/default.nix02:10:02
@akadude:matrix.orgakadude set a profile picture.02:10:20
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @akadude:matrix.org
Hey, I am coming from here: https://github.com/oxalica/rust-overlay/issues/72. How do I use nightly channel? Here is my default.nix: https://gitlab.com/aka_dude/lobsters-best-bot/-/blob/nix-build/default.nix

For buildRustPackage, do something like:

let
  pkgs = ...;
  pinnedRust = pkgs.rust-bin.xxx;
  rustPlatform = pkgs.makeRustPlatform {
    rustc = pinnedRust;
    cargo = pinnedRust;
  };
in rustPlatform.buildRustPackage {
  ...
}
02:30:01

Show newer messages


Back to Room ListRoom Version: 6