31 Jul 2024 |
samasaur | 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 |
Mindavi | In reply to @quapka4:matrix.org And I guess postUnpack would be the appropriate place. postPatch or prePatch, I'd say | 05:31:16 |
| @teutat3s:pub.solar left the room. | 07:50:30 |
| Vika (she/her) changed their profile picture. | 11:50:42 |
2 Aug 2024 |
| fiioul joined the room. | 19:37:18 |
7 Aug 2024 |
| oatmealraisin joined the room. | 17:56:26 |
| @taffisher:matrix.org left the room. | 19:13:00 |
| hyperflare joined the room. | 19:44:42 |
8 Aug 2024 |
quapka4 | 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 |
quapka4 | I hope it's some mismatch of channels or some version or something, because this hassle with "runs on my machine" is exactly something I wanted to avoid when diving into Nix :D | 08:30:43 |
dramforever | In reply to @quapka4:matrix.org 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? if the store path is the same then it's not some channel or version mismatch | 08:33:18 |
dramforever | it could just be something in libgpg-error that works differently in a chroot... unfortunately it's also basically an ad-hoc process to see what went wrong | 08:34:06 |
quapka4 | Well, nix-user-chroot gives me /nix/store and my NixOS also has /nix/store . | 08:34:56 |
dramforever | oh i mean the path of that thing that "builds" | 08:35:16 |
dramforever | how are you running anything? full command and logs? | 08:35:24 |
dramforever | it should fail at the end something like for full logs run nix log /nix/store/somethingsomething.drv | 08:35:53 |
quapka4 | Just nix build '.?submodules=1' . | 08:36:00 |
dramforever | if that long something is the same it's not a channel or version mismatch | 08:36:03 |
dramforever | oh yeah sorry there's no way to know what the success side looks like 🤦 | 08:36:38 |
dramforever | In reply to @quapka4:matrix.org Just nix build '.?submodules=1' . how about nix eval --raw '.?submodules=1' on both sides | 08:37:11 |
quapka4 | In reply to @dramforever:matrix.org oh yeah sorry there's no way to know what the success side looks like 🤦 But I have the success side on my NixOS, right? | 08:37:12 |
dramforever | you wouldn't get the error message to check for logs if it succeeded 🤦 lol | 08:37:40 |
dramforever | In reply to @dramforever:matrix.org how about nix eval --raw '.?submodules=1' on both sides this should get you the path on both sides | 08:38:05 |
quapka4 | In reply to @dramforever:matrix.org this should get you the path on both sides It did. It's different, but I am on a different commit, so I'll redo that. | 08:39:02 |
quapka4 | I was working on something in parallel. | 08:39:21 |
quapka4 | Still different, but I have bunch of unversioned files in the NixOS, so I'll try completely fresh repo.. | 08:40:18 |
dramforever | try '.?rev=HEAD&submodules=1' | 08:40:47 |
quapka4 | On my NixOS
❯ nix eval --raw '.?rev=HEAD&submodules=1'
error: hash 'HEAD' has wrong length for hash type 'sha1'
| 08:43:40 |
quapka4 | I haven't upgraded from 23.11 yet. | 08:43:50 |
dramforever | sorry ref | 08:43:53 |