!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

833 Members
165 Servers

Load older messages


SenderMessageTime
6 Aug 2025
@cleverca22:matrix.orgcleverca22this whole mess of code, is there to recreate the submodules04:26:55
@dramforever:matrix.orgdramforever probably add -T to cp? 04:27:32
@dramforever:matrix.orgdramforeverwell you can get flakes to do submodules04:28:15
@cleverca22:matrix.orgcleverca22 ive tried before, and it doesnt actually do it for self 04:28:36
@dramforever:matrix.orgdramforever but you have to use git+something and then ?submodules=1 04:28:36
@dramforever:matrix.orgdramforever like .?submodules=1 04:28:43
@cleverca22:matrix.orgcleverca22 for an input you can do it
but for self, you cant
04:28:47
@dramforever:matrix.orgdramforeveryou can't do it by default04:29:09
@cleverca22:matrix.orgcleverca22 and that just complicates matters, now the user cant just nix build .# like every other project 04:29:14
@dramforever:matrix.orgdramforeveryes04:29:24
@cleverca22:matrix.orgcleverca22the flake.nix needs to be able to request that on its own04:29:26
@dramforever:matrix.orgdramforever you also can't use github: for this 04:30:02
@cleverca22:matrix.orgcleverca22yeah, that does seem to work04:30:03
@cleverca22:matrix.orgcleverca22 dramforever: https://github.com/NixOS/nix/issues/13698 if you want to add any other comments or follow it 04:37:07
@cleverca22:matrix.orgcleverca22also added a TLDR, 2 sets of shell commands, where it fails to build twice with one but succeeds the build with both on the other04:43:52
@cleverca22:matrix.orgcleverca22 the only difference, is the order of the nix build's 04:43:59
@emilazy:matrix.orgemily
In reply to @cleverca22:matrix.org
for an input you can do it
but for self, you cant
you can
13:23:19
@emilazy:matrix.orgemilya cursed syntax was added for it13:23:24
@emilazy:matrix.orgemilyinvolves multiple clones too13:23:30
@emilazy:matrix.orgemily inputs.self.submodules 13:23:37
@emilazy:matrix.orgemilydoesn't work with Lix13:23:49
@cleverca22:matrix.orgcleverca22 looks 13:24:01
@emilazy:matrix.orgemily
In reply to @dramforever:matrix.org
however it's not, if you generate a tarball from git+file submodules become nothing, if you grab a tarball from github submodules become empty directories
there's also like... the cursed subst stuff
13:24:55
@cleverca22:matrix.orgcleverca22yep, that does work on another much simpler project!13:28:02
@cleverca22:matrix.orgcleverca22https://github.com/librerpi/lk-overlay/commit/3b64ee1600063bf968f413dc6b600ca413f77252 that was very simple!13:28:55
@cleverca22:matrix.orgcleverca22now to test on the original problem.....13:29:09
@cleverca22:matrix.orgcleverca22
[clever@amd-nixos:~/apps/vali/pcsx-redux]$ nix flake show
warning: Git tree '/home/clever/apps/vali/pcsx-redux' is dirty
fatal: '/home/clever/apps/vali/pcsx-redux/third_party/ELFIO' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
warning: could not read HEAD ref from repo at 'file:///home/clever/apps/vali/pcsx-redux/third_party/ELFIO', using 'master'
fatal: '/home/clever/apps/vali/pcsx-redux/third_party/ELFIO' does not appear to be a git repository
fatal: Could not read from remote repository.
13:29:47
@cleverca22:matrix.orgcleverca22it seems to entirely break things if you dont have the submodules cloned13:29:56
@cleverca22:matrix.orgcleverca22 but if you git submodule update --init --recursive, it does seem to make progress... 13:33:09
@cleverca22:matrix.orgcleverca22 unsure how it will behave with a github: though, that will need more testing 13:33:41

Show newer messages


Back to Room ListRoom Version: 6