| 6 Aug 2025 |
emily | doesn't work with Lix | 13:23:49 |
cleverca22 | looks | 13:24:01 |
emily | 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 | yep, that does work on another much simpler project! | 13:28:02 |
cleverca22 | https://github.com/librerpi/lk-overlay/commit/3b64ee1600063bf968f413dc6b600ca413f77252
that was very simple! | 13:28:55 |
cleverca22 | now to test on the original problem..... | 13:29:09 |
cleverca22 | [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 | it seems to entirely break things if you dont have the submodules cloned | 13:29:56 |
cleverca22 | but if you git submodule update --init --recursive, it does seem to make progress... | 13:33:09 |
cleverca22 | unsure how it will behave with a github: though, that will need more testing | 13:33:41 |
cleverca22 | hmmmm, but now CI fails:
error: unexpected flake input attribute 'submodules', at /nix/store/9v6yq23xyzhciq4d6w2w4qy66mv4bfaw-source/flake.nix:8:5 | 14:40:12 |
cleverca22 | because CI runs 2.24.9 and doesnt understand that flag | 14:41:44 |
emily | if you can use git subtrees | 14:46:14 |
emily | your life will be a lot easier | 14:46:19 |
cleverca22 | problem is convincing an upstream repo to entirely change how they manage things, when i will likely never be returning as a contributor | 14:55:47 |
cleverca22 | bumping the nix version in the github action does fix the last error | 14:56:05 |
emily | well if they ship a flake they should probably care about flake UX | 15:01:46 |
emily | but I guess it depends on how Nix-y the project is | 15:01:56 |
cleverca22 | given 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 fully | 15:35:41 |
| vidariondr set a profile picture. | 18:31:01 |
cleverca22 | [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 | emily: dang-it, lol | 21:00:51 |
cleverca22 | git+https:// however does work | 21:08:14 |
cleverca22 | only issue, is that github: poisons the lock file | 21:08:31 |
cleverca22 | once you update with that, you cant update again to change the scheme | 21:08:43 |
cleverca22 | correction.... | 21:09:13 |
cleverca22 | git+https:// fetches, and then silently ignores the submodules = true;..... | 21:09:40 |
cleverca22 | so basically, inputs.self.submodules = true; is almost useless it seems to only work on git+file:// and nowhere else | 21:26:27 |
| 7 Aug 2025 |
woile | Maybe someone here in flakes can help me with this:
hi people, I need some help with importNpmLock.npmConfigHook. I'm trying to build this package using buildNpmPackage. But when building it I get:
mv: cannot stat 'package.json': No such file or directory
Which is inside the npm-config-hook. I'm not sure what's going wrong. The traceback shows the source folder being used and it contains the ./site/package.json and the npm-config-hook.sh does a pushd "$npmRoot", so it should be there. Any thoughts? Thanks!
| 10:56:34 |
| @felix.herrmann:matrix.sabix.de left the room. | 17:45:23 |