nzbr / pnpm2nix-nzbr

Build packages using pnpm with nix
ISC License
51 stars 20 forks source link

error installing better-sqlite3 #36

Open r33drichards opened 3 months ago

r33drichards commented 3 months ago
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
'/nix/store/w5m6pgwcwk50bnh0p13idln535aabmzq-package.json' -> 'package.json'
'/nix/store/y3ysrgwvw7arnc4v1ihzsi2qic07px0b-pnpm-lock.yaml' -> 'pnpm-lock.yaml'
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
Lockfile is up to date, resolution step is skipped
Progress: resolved 1, reused 0, downloaded 0, added 0
Packages: +1244

Progress: resolved 1, reused 0, downloaded 0, added 0
...
Progress: resolved 1244, reused 0, downloaded 1244, added 1244, done
node_modules/.pnpm/es5-ext@0.10.63/node_modules/es5-ext: Running postinstall script...
node_modules/.pnpm/vue-demi@0.14.7_vue@3.4.19/node_modules/vue-demi: Running postinstall script...
node_modules/.pnpm/better-sqlite3@9.4.3/node_modules/better-sqlite3: Running install script...
node_modules/.pnpm/es5-ext@0.10.63/node_modules/es5-ext: Running postinstall script, done in 108ms
node_modules/.pnpm/maplibre-gl@2.4.0/node_modules/maplibre-gl: Running postinstall script...
node_modules/.pnpm/maplibre-gl@2.4.0/node_modules/maplibre-gl: Running postinstall script, done in 88ms
node_modules/.pnpm/vue-demi@0.14.7_vue@3.4.19/node_modules/vue-demi: Running postinstall script, done in 257ms
node_modules/.pnpm/better-sqlite3@9.4.3/node_modules/better-sqlite3: Running install script, failed in 772ms
.../node_modules/better-sqlite3 install$ 
│ 
│ 
│ 
│ 
│ 
│ 
│ 
│ 
│ 
│ 
│ 
│ 
│ 
│ 
│ 
│ 
│ 
│ 
│ 
│ 
│ 
│ 
└─ Failed in 772ms at /build/node_modules/.pnpm/better-sqlite3@9.4.3/node_modules/better-sqlite3
node_modules/.pnpm/maplibre-gl@2.4.0/node_modules/maplibre-gl: Running postinstall script, done in 88ms
 ELIFECYCLE  Command failed with exit code 1.

the project i am trying to build is https://github.com/getflakery/dash/tree/38fc2ea53b15db402c90fd365b84354987e2a7e1

i am able to build using pnpm run build in my dev shell

AsterisMono commented 1 week ago

To build sqlite3 you probably need gcc and python3 in your extraBuildInputs.