!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

834 Members
165 Servers

Load older messages


SenderMessageTime
6 Aug 2025
@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
@cleverca22:matrix.orgcleverca22 hmmmm, but now CI fails:
error: unexpected flake input attribute 'submodules', at /nix/store/9v6yq23xyzhciq4d6w2w4qy66mv4bfaw-source/flake.nix:8:5
14:40:12
@cleverca22:matrix.orgcleverca22because CI runs 2.24.9 and doesnt understand that flag14:41:44
@emilazy:matrix.orgemilyif you can use git subtrees14:46:14
@emilazy:matrix.orgemilyyour life will be a lot easier14:46:19
@cleverca22:matrix.orgcleverca22problem is convincing an upstream repo to entirely change how they manage things, when i will likely never be returning as a contributor14:55:47
@cleverca22:matrix.orgcleverca22bumping the nix version in the github action does fix the last error14:56:05
@emilazy:matrix.orgemilywell if they ship a flake they should probably care about flake UX15:01:46
@emilazy:matrix.orgemilybut I guess it depends on how Nix-y the project is15:01:56
@cleverca22:matrix.orgcleverca22given that it refuses to build when used as a flake input (because of the above issues), i think its just one nix user, that hasnt tested things fully15:35:41
@vidariondr:matrix.orgvidariondr set a profile picture.18:31:01
@cleverca22:matrix.orgcleverca22
[clever@amd-nixos:~/apps/vali/PSn00bSDK-Nix]$ nix flake info
warning: 'nix flake info' is a deprecated alias for 'nix flake metadata'
warning: Git tree '/home/clever/apps/vali/PSn00bSDK-Nix' is dirty
error:
       … while updating the lock file of flake 'git+file:///home/clever/apps/vali/PSn00bSDK-Nix'

       error: input attribute 'submodules' not supported by scheme 'github'
21:00:39
@cleverca22:matrix.orgcleverca22 emily: dang-it, lol 21:00:51
@cleverca22:matrix.orgcleverca22 git+https:// however does work 21:08:14
@cleverca22:matrix.orgcleverca22 only issue, is that github: poisons the lock file 21:08:31
@cleverca22:matrix.orgcleverca22once you update with that, you cant update again to change the scheme21:08:43

Show newer messages


Back to Room ListRoom Version: 6