paisa
paisa copied to clipboard
Cannot install on NixOS due to outdated Node.js
Describe your Environment OS: NixOS unstable Paisa Version: 0.7.3 App Variant: CLI
Describe the bug Doesn't install on NixOS unstable anymore as Node.js 18 has been removed from the repo.
To Reproduce Steps to reproduce the behavior:
- Try to install Paisa on NixOS unstable.
should be fixed on master now
Still cannot build due to npm errors. Also, the vendorHash is wrong.
I'm getting the hash error still:
error: hash mismatch in fixed-output derivation '/nix/store/l9wn4px95dlk0g0vkxisgsxccbj2k8sq-paisa-cli-0.7.3-go-modules.drv':
likely URL: (unknown)
specified: sha256-KnHJ6+aMahTeNdbRcRAgBERGVYen/tM/tDcFI/NyLdE=
got: sha256-5jrxI+zSKbopGs5GmGVyqQcMHNZJbCsiFEH/LPXWxpk=
error: 1 dependencies of derivation '/nix/store/60q0qjlx1qn3krwzr5yna003mv84b9xk-paisa-cli-0.7.3.drv' failed to build
I tried fixing the vendorHash (fork), but getting different error:
building '/nix/store/lyrxc7lihmlyg4hnq25l19267ac1svf6-node-dependencies-paisa-0.0.1.drv'...
error: builder for '/nix/store/lyrxc7lihmlyg4hnq25l19267ac1svf6-node-dependencies-paisa-0.0.1.drv' failed with exit code 1;
last 25 log lines:
> npm error gyp info spawn args 'build',
> npm error gyp info spawn args '-Goutput_dir=.'
> npm error gyp info spawn args ]
> npm error Traceback (most recent call last):
> npm error File "/nix/store/jx2dap3qh47qnvrnahia3wv7rqrvlz9f-node-dependencies-paisa-0.0.1/paisa/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module>
> npm error import gyp # noqa: E402
> npm error ^^^^^^^^^^
> npm error File "/nix/store/jx2dap3qh47qnvrnahia3wv7rqrvlz9f-node-dependencies-paisa-0.0.1/paisa/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module>
> npm error import gyp.input
> npm error File "/nix/store/jx2dap3qh47qnvrnahia3wv7rqrvlz9f-node-dependencies-paisa-0.0.1/paisa/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module>
> npm error from distutils.version import StrictVersion
> npm error ModuleNotFoundError: No module named 'distutils'
> npm error gyp ERR! configure error
> npm error gyp ERR! stack Error: `gyp` failed with exit code: 1
> npm error gyp ERR! stack at ChildProcess.onCpExit (/nix/store/jx2dap3qh47qnvrnahia3wv7rqrvlz9f-node-dependencies-paisa-0.0.1/paisa/node_modules/node-gyp/lib/configure.js:325:16)
> npm error gyp ERR! stack at ChildProcess.emit (node:events:518:28)
> npm error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
> npm error gyp ERR! System Linux 6.12.24
> npm error gyp ERR! command "/nix/store/8v7hqm22mk2w725sqwqcnym5jznqmn64-nodejs-22.14.0/bin/node" "/nix/store/jx2dap3qh47qnvrnahia3wv7rqrvlz9f-node-dependencies-paisa-0.0.1/paisa/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
> npm error gyp ERR! cwd /nix/store/jx2dap3qh47qnvrnahia3wv7rqrvlz9f-node-dependencies-paisa-0.0.1/paisa/node_modules/nice-napi
> npm error gyp ERR! node -v v22.14.0
> npm error gyp ERR! node-gyp -v v9.4.1
> npm error gyp ERR! not ok
> -npm error A complete log of this run can be found in: /build/.npm/_logs/2025-06-08T10_09_24_832Z-debug-0.log
> -
For full logs, run 'nix log /nix/store/lyrxc7lihmlyg4hnq25l19267ac1svf6-node-dependencies-paisa-0.0.1.drv'.
error: 1 dependencies of derivation '/nix/store/3bmgz72cfm1s4mhfljfryppy77vlj55j-paisa-cli-0.7.3.drv' failed to build
I'm not versed in node well enough to unravel this thing (yet), but help appreciated.