| 23 Dec 2022 |
Charles ⚡️ | maybe try #nix:nixos.org or #flakes:nixos.org | 02:26:01 |
Charles ⚡️ | 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 ⚡️ | flakes have input pinning by default which is fantastic | 02:26:43 |
Ralith | I am sure they are better but I have never seen anything involving flakes that didn't have at least fifty lines of mysterious incantations | 02:27:57 |
Ralith | meanwhile my shell.nix is fifteen lines and I can explain every single token | 02:28:11 |
Ralith | and nothing's seven levels of indentation deep, either :P | 02:28:41 |
Ralith | maybe someday they will be better enough to be usable | 02:29:19 |
Charles ⚡️ | i mean you can import attrsets from other files to get around that | 02:29:27 |
Charles ⚡️ | https://or.computer.surgery/charles/blog/-/blob/main/flake.nix here's a really simple flake | 02:29:33 |
Ralith | 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 ⚡️ | I didn't know that was possible | 02:33:28 |
Ralith | maybe it's stubbed somehow? certainly you don't have to specify one | 02:33:55 |
Charles ⚡️ | I thought mkDerivation required it and mkShell was implemented in terms of that | 02:34:47 |
Charles ⚡️ | I could easily be wrong | 02:35:11 |
| luxus joined the room. | 06:51:30 |
aktaboot | any Idea how to set lld as rust linker ? | 17:51:43 |
shanesveller | 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 |
shanesveller | for my devShell only, I let derivations build "normally" | 18:06:09 |
aktaboot | thank | 18:13:48 |
| snick joined the room. | 19:13:43 |
| snick set a profile picture. | 19:22:16 |
| snick changed their profile picture. | 19:40:42 |
| 24 Dec 2022 |
aktaboot | Anyone used bevy engine successfully ? | 13:48:53 |
aktaboot | for some reason it is not finding my GPU | 14:25:42 |
aktaboot | 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 |
shanesveller | I do, that's actually what I pulled my example above | 16:09:13 |
shanesveller | It worked on nvidia GPU / X11 and AMD GPU / X11 for me | 16:09:41 |
shanesveller | * I do, that's actually what I pulled my example above from | 16:09:53 |
Charles ⚡️ | In reply to @aktaboot:tchncs.de Anyone used bevy engine successfully ? https://or.computer.surgery/charles/maxels | 16:46:48 |
aktaboot | Thanks <3 | 16:49:24 |