!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

149 Members
47 Servers

Load older messages


SenderMessageTime
24 Jul 2024
@akechishiro:matrix.orgAkechiShiro *

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 :

yarn.lock changed, you need to update the fetchYarnDeps hash
error: builder for '/nix/store/0fsw2dli4nf7npmd64qwybmy0j5hqvhp-opendeck-modules-v2.0.0-beta.10.drv' failed with exit code 1;
       last 10 log lines:
       > calling 'envHostTargetHook' function hook 'ccWrapper_addCVars' /nix/store/gps9qrh99j7g02840wv5x78ykmz30byp-strip.sh
       > calling 'envHostTargetHook' function hook 'bintoolsWrapper_addLDVars' /nix/store/gps9qrh99j7g02840wv5x78ykmz30byp-strip.sh
       > calling 'envHostTargetHook' function hook 'ccWrapper_addCVars' /nix/store/kp2j7yn0wzwq5piy494r54dafrh83s6s-gcc-wrapper-13.3.0
       > calling 'envHostTargetHook' function hook 'bintoolsWrapper_addLDVars' /nix/store/kp2j7yn0wzwq5piy494r54dafrh83s6s-gcc-wrapper-13.3.0
       > calling 'envHostTargetHook' function hook 'ccWrapper_addCVars' /nix/store/9rz99vibv1782dxjkwvxr29s7f2f86wl-binutils-wrapper-2.42
       > calling 'envHostTargetHook' function hook 'bintoolsWrapper_addLDVars' /nix/store/9rz99vibv1782dxjkwvxr29s7f2f86wl-binutils-wrapper-2.42
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > yarn.lock changed, you need to update the fetchYarnDeps hash
       For full logs, run 'nix log /nix/store/0fsw2dli4nf7npmd64qwybmy0j5hqvhp-opendeck-modules-v2.0.0-beta.10.drv'.
error: 1 dependencies of derivation '/nix/store/qx2kh0ycqmkdfd206mdcs60vl827b302-opendeck-v2.0.0-beta.10.drv' failed to build
error: 1 dependencies of derivation '/nix/store/35cwqn82bc7y02yk11schajbwcd3c5v5-opendeck-2.0.0-beta.10.drv' failed to build
23:05:25
@akechishiro:matrix.orgAkechiShiro *

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 :

yarn.lock changed, you need to update the fetchYarnDeps hash
error: builder for '/nix/store/0fsw2dli4nf7npmd64qwybmy0j5hqvhp-opendeck-modules-v2.0.0-beta.10.drv' failed with exit code 1;
       last 10 log lines:
       > calling 'envHostTargetHook' function hook 'ccWrapper_addCVars' /nix/store/gps9qrh99j7g02840wv5x78ykmz30byp-strip.sh
       > calling 'envHostTargetHook' function hook 'bintoolsWrapper_addLDVars' /nix/store/gps9qrh99j7g02840wv5x78ykmz30byp-strip.sh
       > calling 'envHostTargetHook' function hook 'ccWrapper_addCVars' /nix/store/kp2j7yn0wzwq5piy494r54dafrh83s6s-gcc-wrapper-13.3.0
       > calling 'envHostTargetHook' function hook 'bintoolsWrapper_addLDVars' /nix/store/kp2j7yn0wzwq5piy494r54dafrh83s6s-gcc-wrapper-13.3.0
       > calling 'envHostTargetHook' function hook 'ccWrapper_addCVars' /nix/store/9rz99vibv1782dxjkwvxr29s7f2f86wl-binutils-wrapper-2.42
       > calling 'envHostTargetHook' function hook 'bintoolsWrapper_addLDVars' /nix/store/9rz99vibv1782dxjkwvxr29s7f2f86wl-binutils-wrapper-2.42
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > yarn.lock changed, you need to update the fetchYarnDeps hash
       For full logs, run 'nix log /nix/store/0fsw2dli4nf7npmd64qwybmy0j5hqvhp-opendeck-modules-v2.0.0-beta.10.drv'.
error: 1 dependencies of derivation '/nix/store/qx2kh0ycqmkdfd206mdcs60vl827b302-opendeck-v2.0.0-beta.10.drv' failed to build
error: 1 dependencies of derivation '/nix/store/35cwqn82bc7y02yk11schajbwcd3c5v5-opendeck-2.0.0-beta.10.drv' failed to build
23:05:32
@akechishiro:matrix.orgAkechiShiro *

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 :

yarn.lock changed, you need to update the fetchYarnDeps hash
error: builder for '/nix/store/0fsw2dli4nf7npmd64qwybmy0j5hqvhp-opendeck-modules-v2.0.0-beta.10.drv' failed with exit code 1;
       last 10 log lines:
       > calling 'envHostTargetHook' function hook 'ccWrapper_addCVars' /nix/store/gps9qrh99j7g02840wv5x78ykmz30byp-strip.sh
       > calling 'envHostTargetHook' function hook 'bintoolsWrapper_addLDVars' /nix/store/gps9qrh99j7g02840wv5x78ykmz30byp-strip.sh
       > calling 'envHostTargetHook' function hook 'ccWrapper_addCVars' /nix/store/kp2j7yn0wzwq5piy494r54dafrh83s6s-gcc-wrapper-13.3.0
       > calling 'envHostTargetHook' function hook 'bintoolsWrapper_addLDVars' /nix/store/kp2j7yn0wzwq5piy494r54dafrh83s6s-gcc-wrapper-13.3.0
       > calling 'envHostTargetHook' function hook 'ccWrapper_addCVars' /nix/store/9rz99vibv1782dxjkwvxr29s7f2f86wl-binutils-wrapper-2.42
       > calling 'envHostTargetHook' function hook 'bintoolsWrapper_addLDVars' /nix/store/9rz99vibv1782dxjkwvxr29s7f2f86wl-binutils-wrapper-2.42
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > yarn.lock changed, you need to update the fetchYarnDeps hash
       For full logs, run 'nix log /nix/store/0fsw2dli4nf7npmd64qwybmy0j5hqvhp-opendeck-modules-v2.0.0-beta.10.drv'.
error: 1 dependencies of derivation '/nix/store/qx2kh0ycqmkdfd206mdcs60vl827b302-opendeck-v2.0.0-beta.10.drv' failed to build
error: 1 dependencies of derivation '/nix/store/35cwqn82bc7y02yk11schajbwcd3c5v5-opendeck-2.0.0-beta.10.drv' failed to build
23:05:37
@akechishiro:matrix.orgAkechiShiro *

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 :

yarn.lock changed, you need to update the fetchYarnDeps hash
error: builder for '/nix/store/0fsw2dli4nf7npmd64qwybmy0j5hqvhp-opendeck-modules-v2.0.0-beta.10.drv' failed with exit code 1;
       last 10 log lines:
       > calling 'envHostTargetHook' function hook 'ccWrapper_addCVars' /nix/store/gps9qrh99j7g02840wv5x78ykmz30byp-strip.sh
       > calling 'envHostTargetHook' function hook 'bintoolsWrapper_addLDVars' /nix/store/gps9qrh99j7g02840wv5x78ykmz30byp-strip.sh
       > calling 'envHostTargetHook' function hook 'ccWrapper_addCVars' /nix/store/kp2j7yn0wzwq5piy494r54dafrh83s6s-gcc-wrapper-13.3.0
       > calling 'envHostTargetHook' function hook 'bintoolsWrapper_addLDVars' /nix/store/kp2j7yn0wzwq5piy494r54dafrh83s6s-gcc-wrapper-13.3.0
       > calling 'envHostTargetHook' function hook 'ccWrapper_addCVars' /nix/store/9rz99vibv1782dxjkwvxr29s7f2f86wl-binutils-wrapper-2.42
       > calling 'envHostTargetHook' function hook 'bintoolsWrapper_addLDVars' /nix/store/9rz99vibv1782dxjkwvxr29s7f2f86wl-binutils-wrapper-2.42
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > yarn.lock changed, you need to update the fetchYarnDeps hash
       For full logs, run 'nix log /nix/store/0fsw2dli4nf7npmd64qwybmy0j5hqvhp-opendeck-modules-v2.0.0-beta.10.drv'.
error: 1 dependencies of derivation '/nix/store/qx2kh0ycqmkdfd206mdcs60vl827b302-opendeck-v2.0.0-beta.10.drv' failed to build
error: 1 dependencies of derivation '/nix/store/35cwqn82bc7y02yk11schajbwcd3c5v5-opendeck-2.0.0-beta.10.drv' failed to build

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
@akechishiro:matrix.orgAkechiShiro *

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 :

yarn.lock changed, you need to update the fetchYarnDeps hash
error: builder for '/nix/store/0fsw2dli4nf7npmd64qwybmy0j5hqvhp-opendeck-modules-v2.0.0-beta.10.drv' failed with exit code 1;
       last 10 log lines:
       > calling 'envHostTargetHook' function hook 'ccWrapper_addCVars' /nix/store/gps9qrh99j7g02840wv5x78ykmz30byp-strip.sh
       > calling 'envHostTargetHook' function hook 'bintoolsWrapper_addLDVars' /nix/store/gps9qrh99j7g02840wv5x78ykmz30byp-strip.sh
       > calling 'envHostTargetHook' function hook 'ccWrapper_addCVars' /nix/store/kp2j7yn0wzwq5piy494r54dafrh83s6s-gcc-wrapper-13.3.0
       > calling 'envHostTargetHook' function hook 'bintoolsWrapper_addLDVars' /nix/store/kp2j7yn0wzwq5piy494r54dafrh83s6s-gcc-wrapper-13.3.0
       > calling 'envHostTargetHook' function hook 'ccWrapper_addCVars' /nix/store/9rz99vibv1782dxjkwvxr29s7f2f86wl-binutils-wrapper-2.42
       > calling 'envHostTargetHook' function hook 'bintoolsWrapper_addLDVars' /nix/store/9rz99vibv1782dxjkwvxr29s7f2f86wl-binutils-wrapper-2.42
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > yarn.lock changed, you need to update the fetchYarnDeps hash
       For full logs, run 'nix log /nix/store/0fsw2dli4nf7npmd64qwybmy0j5hqvhp-opendeck-modules-v2.0.0-beta.10.drv'.
error: 1 dependencies of derivation '/nix/store/qx2kh0ycqmkdfd206mdcs60vl827b302-opendeck-v2.0.0-beta.10.drv' failed to build
error: 1 dependencies of derivation '/nix/store/35cwqn82bc7y02yk11schajbwcd3c5v5-opendeck-2.0.0-beta.10.drv' failed to build

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
@keiichi:matrix.orgteto 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
@keiichi:matrix.orgteto 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
@julia:the-apothecary.club@julia:the-apothecary.club left the room.01:13:53
18 Aug 2024
@carlossless:matrix.orgcarlossless joined the room.11:17:12
19 Aug 2024
@rina/:matrix.orgkait joined the room.23:35:05
21 Aug 2024
@aktaboot:tchncs.deaktabootHow can I go around node-gyp trying to access the interwebs20:27:18
22 Aug 2024
@emilazy:matrix.orgemilywhat's the most currentest non-deprecated recommended way to package an npm thing in Nixpkgs?03:04:01
@emilazy:matrix.orgemily(actually I literally just need it fetched)03:04:06
@winter:catgirl.cloudWinter
In reply to @emilazy:matrix.org
what's the most currentest non-deprecated recommended way to package an npm thing in Nixpkgs?
buildNpmPackage if you wanna build it from source
03:05:32
@emilazy:matrix.orgemilyit's, uh03:05:41
@winter:catgirl.cloudWinter
In reply to @emilazy:matrix.org
(actually I literally just need it fetched)
then yeah just fetchurl it
03:05:43
@emilazy:matrix.orgemilyit's a bunch of PNGs of Noto Color Emoji03:05:47
@emilazy:matrix.orgemily🫠03:05:49
@winter:catgirl.cloudWinterthen yeah, fetchurl is your friend :)03:05:57
@winter:catgirl.cloudWinteror whatever03:06:01
@emilazy:matrix.orgemily …so that I can patch out the illegal Apple ones… that signal-desktop ships… and that upstream doesn't care about… 03:06:01
@emilazy:matrix.orgemilyright03:06:04
@winter:catgirl.cloudWinter
In reply to @emilazy:matrix.org
…so that I can patch out the illegal Apple ones… that signal-desktop ships… and that upstream doesn't care about…
what the fuck?
03:06:10
@emilazy:matrix.orgemilyI was hoping for something that I could put in a file that would auto-update though03:06:13
@emilazy:matrix.orgemily but I guess that only happens for direct pkgs.* anyway 03:06:18
@emilazy:matrix.orgemily
In reply to @winter:catgirl.cloud
what the fuck?
https://matrix.to/#/!kjdutkOsheZdjqYmqp:nixos.org/$PnBoDJZMWM2S7T6QUWvbg3KZq6q4VfH_nMqB1C2Hzik?via=lossy.network&via=matrix.org&via=nixos.dev 🙃
03:06:39
@emilazy:matrix.orgemilythey ship Apple emoji on all platforms03:06:43
@emilazy:matrix.orgemilyI don't want to mark Signal as non-free, so…03:06:49
@winter:catgirl.cloudWintercan you make a way to opt-into the previous behavior that makes it nonfree? :P03:07:10
@winter:catgirl.cloudWinter(i assume you'd do such a thing anyways but)03:07:30

Show newer messages


Back to Room ListRoom Version: 6