!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

717 Members
Rust162 Servers

Load older messages


SenderMessageTime
23 Dec 2022
@charles:computer.surgeryCharles ⚡️ maybe try #nix:nixos.org or #flakes:nixos.org 02:26:01
@charles:computer.surgeryCharles ⚡️
In reply to @ralith:ralith.com
just sticking with shell.nix
nah i still think flakes are better, this one thing is just weird and i've never seen anyone do it
02:26:28
@charles:computer.surgeryCharles ⚡️flakes have input pinning by default which is fantastic02:26:43
@ralith:ralith.comRalithI am sure they are better but I have never seen anything involving flakes that didn't have at least fifty lines of mysterious incantations02:27:57
@ralith:ralith.comRalithmeanwhile my shell.nix is fifteen lines and I can explain every single token02:28:11
@ralith:ralith.comRalithand nothing's seven levels of indentation deep, either :P02:28:41
@ralith:ralith.comRalithmaybe someday they will be better enough to be usable02:29:19
@charles:computer.surgeryCharles ⚡️i mean you can import attrsets from other files to get around that02:29:27
@charles:computer.surgeryCharles ⚡️https://or.computer.surgery/charles/blog/-/blob/main/flake.nix here's a really simple flake02:29:33
@ralith:ralith.comRalith
In reply to @charles:computer.surgery
Weird, why haven't I noticed problems then, is mkShell doing something weird?
I think mkShell specifically doesn't have a src, so probably the lack of an explicit mkShell somewhere is my problem
02:32:20
@charles:computer.surgeryCharles ⚡️I didn't know that was possible02:33:28
@ralith:ralith.comRalith maybe it's stubbed somehow? certainly you don't have to specify one 02:33:55
@charles:computer.surgeryCharles ⚡️I thought mkDerivation required it and mkShell was implemented in terms of that02:34:47
@charles:computer.surgeryCharles ⚡️I could easily be wrong02:35:11
@luxus:luxus.ailuxus joined the room.06:51:30
@aktaboot:tchncs.deaktaboot any Idea how to set lld as rust linker ? 17:51:43
@shane:sveller.socialshanesveller

Here's how I do it for mold instead:

CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER =
          lib.optional pkgs.stdenv.isLinux "${pkgs.clang}/bin/clang";
        LD_LIBRARY_PATH = lib.optional pkgs.stdenv.isLinux (lib.makeLibraryPath
          (with pkgs; [ ... ]));
        RUSTFLAGS = lib.optional pkgs.stdenv.isLinux
          "-C link-arg=-fuse-ld=${pkgs.mold}/bin/mold";
18:05:49
@shane:sveller.socialshanesveller for my devShell only, I let derivations build "normally" 18:06:09
@aktaboot:tchncs.deaktabootthank18:13:48
@bootstrapper:matrix.orgsnick joined the room.19:13:43
@bootstrapper:matrix.orgsnick set a profile picture.19:22:16
@bootstrapper:matrix.orgsnick changed their profile picture.19:40:42
24 Dec 2022
@aktaboot:tchncs.deaktabootAnyone used bevy engine successfully ?13:48:53
@aktaboot:tchncs.deaktabootfor some reason it is not finding my GPU14:25:42
@aktaboot:tchncs.deaktaboot
thread 'main' panicked at 'Unable to find a GPU! Make sure you have installed required drivers! For extra information, see: https://github.com/bevyengine/bevy/blob/latest/docs/linux_dependencies.md'
14:26:35
@shane:sveller.socialshanesvellerI do, that's actually what I pulled my example above16:09:13
@shane:sveller.socialshanesvellerIt worked on nvidia GPU / X11 and AMD GPU / X11 for me16:09:41
@shane:sveller.socialshanesveller* I do, that's actually what I pulled my example above from16:09:53
@charles:computer.surgeryCharles ⚡️
In reply to @aktaboot:tchncs.de
Anyone used bevy engine successfully ?
https://or.computer.surgery/charles/maxels
16:46:48
@aktaboot:tchncs.deaktabootThanks <316:49:24

There are no newer messages yet.


Back to Room ListRoom Version: 6