24 Jul 2024 |
AkechiShiro | * 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 | * 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 | * 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 | * 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 | * 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 |
teto | 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 |
teto | 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 left the room. | 01:13:53 |
18 Aug 2024 |
| carlossless joined the room. | 11:17:12 |
19 Aug 2024 |
| kait joined the room. | 23:35:05 |
21 Aug 2024 |
aktaboot | How can I go around node-gyp trying to access the interwebs | 20:27:18 |
22 Aug 2024 |
emily | what's the most currentest non-deprecated recommended way to package an npm thing in Nixpkgs? | 03:04:01 |
emily | (actually I literally just need it fetched) | 03:04:06 |
Winter | 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 |
emily | it's, uh | 03:05:41 |
Winter | In reply to @emilazy:matrix.org (actually I literally just need it fetched) then yeah just fetchurl it | 03:05:43 |
emily | it's a bunch of PNGs of Noto Color Emoji | 03:05:47 |
emily | 🫠| 03:05:49 |
Winter | then yeah, fetchurl is your friend :) | 03:05:57 |
Winter | or whatever | 03:06:01 |
emily | …so that I can patch out the illegal Apple ones… that signal-desktop ships… and that upstream doesn't care about… | 03:06:01 |
emily | right | 03:06:04 |
Winter | 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 |
emily | I was hoping for something that I could put in a file that would auto-update though | 03:06:13 |
emily | but I guess that only happens for direct pkgs.* anyway | 03:06:18 |
emily | 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 |
emily | they ship Apple emoji on all platforms | 03:06:43 |
emily | I don't want to mark Signal as non-free, so… | 03:06:49 |
Winter | can you make a way to opt-into the previous behavior that makes it nonfree? :P | 03:07:10 |
Winter | (i assume you'd do such a thing anyways but) | 03:07:30 |