Nix NodeJS | 213 Members | |
| 63 Servers |
| Sender | Message | Time |
|---|---|---|
| 21 May 2023 | ||
In reply to @hexa:lossy.networkOh really? I hadn't tested yet | 20:44:55 | |
| https://github.com/NixOS/nixpkgs/pull/230991#issuecomment-1552133508 | 20:45:17 | |
In reply to @hexa:lossy.networkWeird 🤔 | 20:46:07 | |
| I'll investigate in like ~1-2 hours (sorry for delays, day ended up with more non-computer things to do than I thought) | 20:46:45 | |
| No worries, this is a hobby after all | 20:47:25 | |
In reply to @hexa:lossy.network I cannot replicate this by cherry-picking your commit from #229953 on top of #230991 and adding this diff:
| 21:31:44 | |
Instead I just get a successfully built /nix/store/0qjbbmqfvgn9x4g9rgyvbqsfzj9bda91-navidrome-0.49.3 | 21:32:36 | |
Also the navidrome update script fails because building .go-modules in general on the derivation fails due to buildGoModule propagating nativeBuildInputs to the fetcher (???) which obviously adds the npm hook which when run, expects to be building npm stuff, not fetching go modules | 21:38:51 | |
I would say this is a bug in buildGoModule and not npmConfigHook because I imagine the same would happen with, e.g., the rust hooks | 21:39:12 | |
* I would say this is a bug in buildGoModule and not npmConfigHook because I imagine the same would happen with, e.g., the cargo/rust hooks | 21:39:16 | |
| hm ok | 21:39:38 | |
| Now for what to do about it, idk | 21:39:46 | |
There's no comment in the buildGoModule code about why it propagates nativeBuildInputs to the fetcher -- do you know why it would be doing that? | 21:40:20 | |
That seems... counterintuitive. Stuff like buildRustPackage don't do that | 21:41:11 | |
* That seems... counterintuitive. Stuff like buildRustPackage doesn't do that | 21:41:24 | |
(and you can't override the fetcher with buildGoModule either since the fetcher is still not separately exposed...) | 21:41:53 | |
Apparently buildGoModule also doesn't propagate unpackPhase or its hooks to the fetcher despite propagating src, which seems sus... | 21:48:24 | |
It looks like the evcc derivation has the exact same issue and fixes it via buildGoModule's overrideModAttrs to set a slimmer nativeBuildInputs | 21:56:58 | |
| Yeah, adding this to the derivation fixes building
| 22:03:18 | |
In reply to @lily:lily.flowersno idea | 22:03:41 | |
In reply to @lily:lily.flowersoh, right 😲 | 22:04:10 | |
In reply to @hexa:lossy.networkI just realized that was before winter fixed the PR to actually work (which is why it ended up with a pushd/popd) | 22:05:11 | |
| So yeah the npmRoot PR needs to a rebase and then I'll merge and deal with further changes in follow-ups, to unblock other stuff | 22:06:33 | |
| just the upper pushd hunk needs a massage | 22:11:08 | |
| Yep, I've already done it locally. Was gonna get permission from winter before just pushing to the branch myself though | 22:11:34 | |
| 22 May 2023 | ||
| is there a way with buildNpmPackage to just "install" the node_modules and be done? | 11:45:23 | |
| is dontNpmInstall the option I am looking for? I tried it and I'm not sure I am holding it correctly | 11:45:40 | |
| Is the default install hook over-copying or failing or something? | 11:48:19 | |
| 11:58:22 | |
| this is an invalid Node.js package per se | 11:58:26 | |