Nix NodeJS | 209 Members | |
| 62 Servers |
| Sender | Message | Time |
|---|---|---|
| 24 Jul 2024 | ||
| * Hello I'm trying to package an npm frontend for a Tauri app and the hash of the yarn.lock file seems to change during the build causing an error, computing the hash of the file on my side gives me another hash than what Nix finds on the first build try and putting the hash nix computes the first time yield this following error, I'm at a loss to find a way to fix this issue, if anyone has ever seen this, thanks for any help :
I suspect this line in the function/hook is changing the hash : https://github.com/NixOS/nixpkgs/blob/b82b81f8c021ccbbf400f6363f0b2c50f2d29a69/pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix#L150C8-L150C57 | 23:06:48 | |
| * Hello I'm trying to package an npm frontend for a Tauri app and the hash of the yarn.lock file seems to change during the build causing an error, computing the hash of the file on my side gives me another hash than what Nix finds on the first build try and putting the hash nix computes the first time yield this following error, I'm at a loss to find a way to fix this issue, if anyone has ever seen this, thanks for any help :
I suspect this line in the function/hook is changing the hash : https://github.com/NixOS/nixpkgs/blob/b82b81f8c021ccbbf400f6363f0b2c50f2d29a69/pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix#L150C8-L150C57 But there is no way to recompute the hash during the build, actually having to do that feels very weird. | 23:07:40 | |
| 8 Aug 2024 | ||
My X problem is that I hit https://github.com/pulumi/pulumi/issues/12297 while my program is packaged with buildNpmPackage just fine. The package.json contains @pulumi/pulumi in bundleDependencies and I dont think buildNpmPackage deals with that ? | 15:44:32 | |
my Y problem is while editing typescript code of a program inside a nix develop with let drv = buildNpmPackage. ..; in mkShell { buildInputs = [ drv ] }, how can I get my LSP to see the dependencies from drv ? drv.inputs ? export NODE_PATH="${drv}/lib/node_modules ? does nixpkgs provide a dev environment for packages packaged with buildNpmPacakge ? | 15:47:24 | |
| 15 Aug 2024 | ||
| 01:13:53 | ||
| 18 Aug 2024 | ||
| 11:17:12 | ||
| 19 Aug 2024 | ||
| 23:35:05 | ||
| 21 Aug 2024 | ||
| How can I go around node-gyp trying to access the interwebs | 20:27:18 | |
| 22 Aug 2024 | ||
| what's the most currentest non-deprecated recommended way to package an npm thing in Nixpkgs? | 03:04:01 | |
| (actually I literally just need it fetched) | 03:04:06 | |
In reply to @emilazy:matrix.orgbuildNpmPackage if you wanna build it from source | 03:05:32 | |
| it's, uh | 03:05:41 | |
In reply to @emilazy:matrix.orgthen yeah just fetchurl it | 03:05:43 | |
| it's a bunch of PNGs of Noto Color Emoji | 03:05:47 | |
| 🫠| 03:05:49 | |
| then yeah, fetchurl is your friend :) | 03:05:57 | |
| or whatever | 03:06:01 | |
…so that I can patch out the illegal Apple ones… that signal-desktop ships… and that upstream doesn't care about… | 03:06:01 | |
| right | 03:06:04 | |
In reply to @emilazy:matrix.orgwhat the fuck? | 03:06:10 | |
| I was hoping for something that I could put in a file that would auto-update though | 03:06:13 | |
but I guess that only happens for direct pkgs.* anyway | 03:06:18 | |
In reply to @winter:catgirl.cloudhttps://matrix.to/#/!kjdutkOsheZdjqYmqp:nixos.org/$PnBoDJZMWM2S7T6QUWvbg3KZq6q4VfH_nMqB1C2Hzik?via=lossy.network&via=matrix.org&via=nixos.dev 🙃 | 03:06:39 | |
| they ship Apple emoji on all platforms | 03:06:43 | |
| I don't want to mark Signal as non-free, so… | 03:06:49 | |
| can you make a way to opt-into the previous behavior that makes it nonfree? :P | 03:07:10 | |
| (i assume you'd do such a thing anyways but) | 03:07:30 | |
I didn't think to tbh, but I guess I can add an enableUnfree | 03:11:17 | |
| (why would anyone want the Apple emoji anyway? they're hideous) | 03:11:27 | |
it's actually more like lib.licenses.illegal, but we don't have a way to express that :) | 03:13:03 | |