Skip to content

Failure to build on NixOS #354

@frisodubach

Description

@frisodubach

Describe your Environment
OS: NixOS 25.04
Paisa Version: latest
App Variant: CLI

Describe the bug
run nix run github:ananthakumaran/paisa in the terminal, and fails to build.

To Reproduce
Steps to reproduce the behavior:

  1. Open terminal
  2. run nix run github:ananthakumaran/paisa in the terminal, and fails to build.

Expected behavior
Built CLI of Paisa

Journal

error: builder for '/nix/store/xrx0z37qhp874vvlsb2p9wirnnh3wgc7-node-dependencies-paisa-0.0.1.drv' failed with exit code 1;
       last 25 log lines:
       > npm error       |                                           ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
       > npm error make: *** [canvas.target.mk:139: Release/obj.target/canvas/src/backend/Backend.o] Error 1
       > npm error gyp ERR! build error
       > npm error gyp ERR! stack Error: `make` failed with exit code: 2
       > npm error gyp ERR! stack at ChildProcess.<anonymous> (/nix/store/50lhzpd68v47x6jy0b8b3p91n2zv3lv4-nodejs-22.14.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:216:23)
       > npm error gyp ERR! System Linux 6.6.94
       > npm error gyp ERR! command "/nix/store/50lhzpd68v47x6jy0b8b3p91n2zv3lv4-nodejs-22.14.0/bin/node" "/nix/store/50lhzpd68v47x6jy0b8b3p91n2zv3lv4-nodejs-22.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--update-binary" "--module=/nix/store/vn9w61bg51d61g90q2m23p7f4mwz3bxf-node-dependencies-paisa-0.0.1/paisa/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/nix/store/vn9w61bg51d61g90q2m23p7f4mwz3bxf-node-dependencies-paisa-0.0.1/paisa/node_modules/canvas/build/Release" "--napi_version=10" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v127"
       > npm error gyp ERR! cwd /nix/store/vn9w61bg51d61g90q2m23p7f4mwz3bxf-node-dependencies-paisa-0.0.1/paisa/node_modules/canvas
       > npm error gyp ERR! node -v v22.14.0
       > npm error gyp ERR! node-gyp -v v11.0.0
       > npm error gyp ERR! not ok
       > npm error node-pre-gyp ERR! build error
       > npm error node-pre-gyp ERR! stack Error: Failed to execute '/nix/store/50lhzpd68v47x6jy0b8b3p91n2zv3lv4-nodejs-22.14.0/bin/node /nix/store/50lhzpd68v47x6jy0b8b3p91n2zv3lv4-nodejs-22.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --update-binary --module=/nix/store/vn9w61bg51d61g90q2m23p7f4mwz3bxf-node-dependencies-paisa-0.0.1/paisa/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/nix/store/vn9w61bg51d61g90q2m23p7f4mwz3bxf-node-dependencies-paisa-0.0.1/paisa/node_modules/canvas/build/Release --napi_version=10 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v127' (1)
       > npm error node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/nix/store/vn9w61bg51d61g90q2m23p7f4mwz3bxf-node-dependencies-paisa-0.0.1/paisa/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
       > npm error node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:518:28)
       > npm error node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1101:16)
       > npm error node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:304:5)
       > npm error node-pre-gyp ERR! System Linux 6.6.94
       > npm error node-pre-gyp ERR! command "/nix/store/50lhzpd68v47x6jy0b8b3p91n2zv3lv4-nodejs-22.14.0/bin/node" "/nix/store/vn9w61bg51d61g90q2m23p7f4mwz3bxf-node-dependencies-paisa-0.0.1/paisa/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--update-binary"
       > npm error node-pre-gyp ERR! cwd /nix/store/vn9w61bg51d61g90q2m23p7f4mwz3bxf-node-dependencies-paisa-0.0.1/paisa/node_modules/canvas
       > npm error node-pre-gyp ERR! node -v v22.14.0
       > npm error node-pre-gyp ERR! node-pre-gyp -v v1.0.11
       > npm error node-pre-gyp ERR! not ok
       > |npm error A complete log of this run can be found in: /build/.npm/_logs/2025-07-20T04_50_54_726Z-debug-0.log
       > |
       For full logs, run 'nix log /nix/store/xrx0z37qhp874vvlsb2p9wirnnh3wgc7-node-dependencies-paisa-0.0.1.drv'.
error: 1 dependencies of derivation '/nix/store/vn7k1z3wvxls4zgrqmrkjff5cxk0r6mj-paisa-cli-0.7.3.drv' failed to build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions