Nix NodeJS | 194 Members | |
| 56 Servers |
| Sender | Message | Time |
|---|---|---|
| 22 Aug 2024 | ||
| * so I'm trying to build mullvadvpn-gui from source, but npm is trying to chmod the source files, I can't figure out where or why it's doing that, but settings the cache as writable does not seem to be sufficient any ideas ? :) | 12:40:16 | |
| that's happening in the unpackPhase, just after unpacking the source | 12:50:44 | |
| 13:03:37 | ||
| Anyone can help with https://github.com/NixOS/nixpkgs/pull/330137 ? | 13:15:17 | |
| 14:52:59 | ||
| 23 Aug 2024 | ||
| 20:20:53 | ||
Anybody have a minute to help a Yarn packaging noob? Here's my WIP: https://github.com/greg-hellings/nixpkgs/blob/init-homarr/pkgs/servers/homarr/default.nix - it's throwing an error while setting up the offlineCache. Yes, I know I don't have a hash for it yet. But trying to build gives me the error Unknown token: { line: 3, col: 2, type: 'INVALID', value: undefined } 3:2 in lockfile which is fascinating because I have validated that the character { appears nowhere in the lockfile at all | 20:28:57 | |
| Here is the lock file it is complaining about. Line 3 is distinctly empty: https://github.com/ajnart/homarr/blob/v0.15.3/yarn.lock | 20:38:48 | |
OK, so I've mangled the file to get rid of the first few lines where it was complaining and choking. Now it can't parse the deps entries with their version numbers. 🤷 SyntaxError: Unknown token: { line: 3, col: 12, type: 'NUMBER', value: 1 } 3:12 in lockfile Where line 3 now looks like version: 1.2.6. It gets the digit 1 in the first spot and chokes. | 20:59:55 | |
| So I've moved on from it apparently not being able to handle empty lines to now it can't handle parsing numbers. So that's good, I guess? | 21:00:30 | |
Oy. I am basically certain I am matching what other packages are doing, but for me it's not working. And the error doesn't mean anything to me. It's being thrown by this line offline> ++ prefetch-yarn-deps --verbose --builder /nix/store/3pj64cpdxi0nn84ip9lni677w82kh1v5-source/yarn.lock | 22:50:25 | |
| Looks like it might be a problem with yarn file versions. Apparently nothing later than Yarn v1 is supported | 23:08:30 | |
| 24 Aug 2024 | ||
Yup, that's fixed by doing lots of messing around with the yarn file. Now, to find out why yarn won't accept the --offline option from the yarnConfigHook | 00:07:23 | |
| 00:11:42 | |
| That's straight out of the yarnConfigHook. so I'd love to know how I'm screwing that one up | 00:12:20 | |
| 07:02:13 | ||
| 25 Aug 2024 | ||
| Could somebody take a look at this PR? https://github.com/NixOS/nixpkgs/pull/333759 | 17:19:19 | |
| any pnpm-knowers here? do we have any way of backporting pnpm-using things to 24.05? | 20:18:05 | |
| 26 Aug 2024 | ||
| (answer: yes, I backported it :P) | 21:53:36 | |
| 27 Aug 2024 | ||
| 10:57:16 | ||
| 13:24:30 | ||
| 17:20:21 | ||
| 29 Aug 2024 | ||
| Hey, any idea if it's possible to build a npm project and then build a go module in a flake.nix ? I can't find anything at all about building web frontends as part of packages ... I can pre-build the frontend files and then use this flake to build the binary but having to commit pre-built static files is kinda silly .... https://github.com/MathieuMoalic/amumax/blob/main/flake.nix | 13:04:13 | |
| just build it in two derivations | 13:20:16 | |
| Thanks, I think I made it work using two derivations, I am really new to this and I didn't know it could be as simple as that ^^' | 14:39:47 | |
| There are several apps in nixpkgs that do exactly what you're discussing. I found them when I was trying and failing to get Homarr to build in Nix | 15:35:52 | |
| Cook CLI does that, but with Rust instead of Go. Gotify seems to do what you're suggesting, mat | 15:37:39 | |
| https://github.com/NixOS/nixpkgs/tree/master/pkgs/servers/gotify | 15:38:17 | |
| Thanks! | 16:04:25 | |
| It's actually not that hard to build it as one derivation.
| 23:27:55 | |