!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

853 Members
174 Servers

Load older messages


SenderMessageTime
6 Aug 2025
@cleverca22:matrix.orgcleverca22your right!04:03:55
@cleverca22:matrix.orgcleverca22the secondary problem, is that the bash script within the repo, isnt liking this04:06:30
@cleverca22:matrix.orgcleverca22 cp -ru --no-preserve=all /nix/store/wpk39xy9ybc888cihcf6kiwswnvj1yp5-source source/third_party/imgui 04:06:55
@dramforever:matrix.orgdramforever just don't use github: for this for now is what i would say 04:07:03
@dramforever:matrix.orgdramforeveras a workaround04:07:10
@cleverca22:matrix.orgcleverca22 if you first fetched via github, source/third_party/imgui will exist
so it then copies the source to source/third_party/imgui/wpk39xy9ybc888cihcf6kiwswnvj1yp5-source
04:07:18
@cleverca22:matrix.orgcleverca22 but if you first fetched via a git clone, it wont exist, so it renames as it copies to source/third_party/imgui 04:07:37
@cleverca22:matrix.orgcleverca22then everything falls apart, because the submodules are at the wrong place04:08:20
@cleverca22:matrix.orgcleverca22 nix build https://github.com/grumpycoders/pcsx-redux/archive/1b0cbe5e4a535def2e3e3279551e6665cdc102ae.tar.gz seems to work, and it will likely work as a flake input as well... 04:09:44
@cleverca22:matrix.orgcleverca22ah wait nope04:09:50
@cleverca22:matrix.orgcleverca22it fetches, but its the same botched fetch04:09:56
@cleverca22:matrix.orgcleverca22cant seem to craft a valid url that clones it correctly04:11:14
@dramforever:matrix.orgdramforever git+https://github.com/grumpycoders/pcsx-redux.git?ref=refs/heads/main i'd say 04:15:33
@dramforever:matrix.orgdramforeverand it's imo arguable which one is correct04:16:00
@cleverca22:matrix.orgcleverca22
[clever@amd-nixos:~/apps/vali/pcsx-redux]$ rm -rf ~/.cache/nix

[clever@amd-nixos:~/apps/vali/pcsx-redux]$ nix build 'git+https://github.com/grumpycoders/pcsx-redux.git?ref=refs/heads/main&rev=1b0cbe5e4a535def2e3e3279551e6665cdc102ae'
error: builder for '/nix/store/5v3fjh1s5pdr385as5fjir17jvwy06xx-pcsx-redux-0.99test.drv' failed with exit code 2;
       last 25 log lines:
       >       |          ^~~~~~~~~~
       > compilation terminated.
       > In file included from patches/remove_ChgclrPAD_2.c:30:
       > /build/source/src/mips/openbios/sio0/pad.h:30:10: fatal error: stdlib.h: No such file or directory
       >    30 | #include <stdlib.h>
       >       |          ^~~~~~~~~~
04:16:39
@cleverca22:matrix.orgcleverca22also fails04:16:41
@dramforever:matrix.orgdramforever... huh04:17:39
@dramforever:matrix.orgdramforeverso it's only git+file that eats submodules04:18:10
@cleverca22:matrix.orgcleverca22and the question becomes, which one is "right"?04:20:35
@cleverca22:matrix.orgcleverca22i guess now its time to pop open a ticket on github?04:20:57
@dramforever:matrix.orgdramforever git archive generates empty directory for submodule 04:21:29
@dramforever:matrix.orgdramforeverso i'm starting to think empty directory is "correct"04:21:41
@cleverca22:matrix.orgcleverca22 so fixing nix, would remove the one case where it works, and then pcsx-redux definitely needs a PR to fix it 04:22:18
@dramforever:matrix.orgdramforeveryes04:24:36
@dramforever:matrix.orgdramforevereven though i guess it would be slightly weird now04:24:56
@dramforever:matrix.orgdramforeverbecause until nix gets fixed you kinda need to handle both cases04:25:15
@cleverca22:matrix.orgcleverca22 you just need to rmdir, and handle if its already missing 04:25:33
@cleverca22:matrix.orgcleverca22and then copy the submodule into place04:25:37
@cleverca22:matrix.orgcleverca22and all of this mess, is only because flakes strip submodules!04:25:59
@cleverca22:matrix.orgcleverca22https://github.com/grumpycoders/pcsx-redux/blob/main/pcsx-redux.nix#L39-L11704:26:45

Show newer messages


Back to Room ListRoom Version: 6