17 Jul 2024 |
wst | I appreciate your help and time, thank you! | 22:21:04 |
18 Jul 2024 |
| @qfe6mwof7:matrix.org joined the room. | 06:24:10 |
jayhenks | Anyone able to help me with this problem? I guess I could solve it by going through the Nix source code for buildNpmPackage , but if anyone here knows it would be preferable.
https://discourse.nixos.org/t/need-help-with-buildnpmpackage/49074
| 11:03:21 |
22 Jul 2024 |
Cobalt | I coulnd't quite pin it down. This likely is worth to raise as an issue in nixpkgs. | 21:00:59 |
Winter | In reply to @jayhenks:matrix.org
Anyone able to help me with this problem? I guess I could solve it by going through the Nix source code for buildNpmPackage , but if anyone here knows it would be preferable.
https://discourse.nixos.org/t/need-help-with-buildnpmpackage/49074
replied | 21:20:35 |
23 Jul 2024 |
| Ezzobir Bezziou joined the room. | 08:22:26 |
24 Jul 2024 |
| Redstone changed their display name from redstone-menace to Redstone. | 10:17:13 |
| AkechiShiro joined the room. | 23:02:41 |
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, I may need some 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:04:39 |
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:11 |
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:19 |
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 |