Nix Flakes | 899 Members | |
| 183 Servers |
| Sender | Message | Time |
|---|---|---|
| 29 Jul 2024 | ||
| 15:04:47 | ||
| 31 Jul 2024 | ||
| 11:55:17 | ||
| 15:52:25 | ||
| Hi, I am trying to setup a flake for my rust program but I am having some issues... I am using the Burn framework for neural networks and am importing an ONNX pre-trained models in a (I am able to compile just fine in a dev shell) (I hope this is the right room to ask in) | 15:58:00 | |
| My messy
| 15:58:27 | |
I can see them in /tmp/nix-build-app-0.0.1.drv-0/source/models/ though.... | 16:11:33 | |
* I can see them in /tmp/nix-build-app-0.0.1.drv-0/source/models/ though... | 16:11:33 | |
| Hmm, it might be me being stupid... | 16:16:26 | |
In reply to @simon.brandner:envs.netDoesn't seem to be the case... | 16:28:27 | |
| Oh, the problem is actually elsewhere | 16:32:35 | |
Still doesn't explain why it fails in nix build and works fine elsewhere | 16:32:56 | |
So the problem is that the build.rs thingy is failing to find the file it generated (and I indeed cannot find it in /tmp/nix-build-app-0.0.1.drv-0) | 16:47:55 | |
It could be an issue with OUT_DIR not being set correctly... | 16:50:32 | |
| Hi folks, is it not possible to directly change the sources in
But I am getting a | 17:08:40 | |
I don't/can't easily use patches because the makefile can have various structure depending on the version of the package. | 17:09:14 | |
| I assumed that during the phases I kinda have a full access to whatever sources I have, because my changes through any phase end up in the resulting hash anyway. | 17:12:05 | |
In reply to @quapka4:matrix.orgYou actually do, but the source (refered to by $src) is still in the read-only nix store. You probably want to change the upacked source, which should be in the working directory of the builder | 17:17:46 | |
In reply to @soispha:vhack.euAh, thanks! | 17:19:57 | |
So, change $src to $sourceRoot works. | 17:20:33 | |
And I guess postUnpack would be the appropriate place. | 17:23:26 | |
In reply to @simon.brandner:envs.netTrying to print it makes a bit confused... When building using cargo, I see /home/..., when using nix build, I see /build/... | 17:29:38 | |
Pretty sure that is because when you are using nix build the build is run as a nixbld user, and their home directories are not under /home | 19:09:25 | |
| 1 Aug 2024 | ||
In reply to @quapka4:matrix.orgpostPatch or prePatch, I'd say | 05:31:16 | |
| 07:50:30 | ||
| 11:50:42 | ||
| 2 Aug 2024 | ||
| 19:37:18 | ||
| 7 Aug 2024 | ||
| 17:56:26 | ||
| 19:13:00 | ||
| 19:44:42 | ||
| 8 Aug 2024 | ||
Hi, a simple thing :D. I have a flake.nix that builds on my NixOS machine, but when I tried to build that flake on another non-NixOS machine that has Nix installed with nix-user-chroot the build fails on one particular package (libgpg-error). What is the reasonable way to debug this? | 08:29:52 | |