Skip to content

Instantly share code, notes, and snippets.

@omares
Created January 10, 2025 09:10
Show Gist options
  • Save omares/3ccb8ff65dc455849dabd11849f51d6a to your computer and use it in GitHub Desktop.
Save omares/3ccb8ff65dc455849dabd11849f51d6a to your computer and use it in GitHub Desktop.
nix build .#scrypted --system x86_64-linux -L --show-trace
scrypted> Running phase: unpackPhase
scrypted> unpacking source archive /nix/store/dj9699cv8fp7zd7mhm3mhjhrzgxkmjs0-source
scrypted> source root is source/server
scrypted> Running phase: patchPhase
scrypted> Executing npmConfigHook
scrypted> Configuring npm
scrypted> Validating consistency between /build/source/server/package-lock.json and /nix/store/4swsf8pcmlwhq9lpn871zlfjdqr6mp8q-scrypted-0.126.0-npm-deps/package-lock.json
scrypted> Making cache writable
scrypted> Installing dependencies
scrypted> added 303 packages, and audited 304 packages in 2s
scrypted> 53 packages are looking for funding
scrypted> run `npm fund` for details
scrypted> found 0 vulnerabilities
scrypted> patching script interpreter paths in node_modules
scrypted> node_modules/which/bin/which.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/mime/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/mime/src/build.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/mkdirp/dist/cjs/src/bin.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/rimraf/dist/esm/bin.mjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/semver/bin/semver.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/node-gyp/gyp/gyp: interpreter directive changed from "#!/bin/sh" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/sh"
scrypted> node_modules/node-gyp/gyp/test_gyp.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/c9m6yd8fg1flz2j5r4bif1ib5j20a0cy-python3-3.12.8/bin/python3"
scrypted> node_modules/node-gyp/gyp/pylib/gyp/__init__.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/c9m6yd8fg1flz2j5r4bif1ib5j20a0cy-python3-3.12.8/bin/python3"
scrypted> node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/c9m6yd8fg1flz2j5r4bif1ib5j20a0cy-python3-3.12.8/bin/python3"
scrypted> node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/c9m6yd8fg1flz2j5r4bif1ib5j20a0cy-python3-3.12.8/bin/python3"
scrypted> node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/c9m6yd8fg1flz2j5r4bif1ib5j20a0cy-python3-3.12.8/bin/python3"
scrypted> node_modules/node-gyp/gyp/pylib/gyp/win_tool.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/c9m6yd8fg1flz2j5r4bif1ib5j20a0cy-python3-3.12.8/bin/python3"
scrypted> node_modules/node-gyp/gyp/pylib/gyp/input_test.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/c9m6yd8fg1flz2j5r4bif1ib5j20a0cy-python3-3.12.8/bin/python3"
scrypted> node_modules/node-gyp/gyp/pylib/gyp/common_test.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/c9m6yd8fg1flz2j5r4bif1ib5j20a0cy-python3-3.12.8/bin/python3"
scrypted> node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/c9m6yd8fg1flz2j5r4bif1ib5j20a0cy-python3-3.12.8/bin/python3"
scrypted> node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/c9m6yd8fg1flz2j5r4bif1ib5j20a0cy-python3-3.12.8/bin/python3"
scrypted> node_modules/node-gyp/gyp/gyp_main.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/c9m6yd8fg1flz2j5r4bif1ib5j20a0cy-python3-3.12.8/bin/python3"
scrypted> node_modules/node-gyp/bin/node-gyp.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/node-gyp/node_modules/mkdirp/bin/cmd.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/node-gyp/node_modules/glob/dist/esm/bin.mjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/node-gyp/node_modules/nopt/bin/nopt.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/node-gyp-build/bin.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/node-gyp-build/optional.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/node-gyp-build/build-test.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/prebuild-install/bin.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/cacache/node_modules/mkdirp/bin/cmd.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/cacache/node_modules/glob/dist/esm/bin.mjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/tar/node_modules/rimraf/dist/esm/bin.mjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/tar/node_modules/glob/dist/esm/bin.mjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/glob/dist/esm/bin.mjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/uuid/dist/bin/uuid: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/rc/cli.js: interpreter directive changed from "#! /usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/cross-spawn/node_modules/which/bin/node-which: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/typescript/bin/tsc: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> node_modules/typescript/bin/tsserver: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node"
scrypted> npm error code 1
scrypted> npm error path /build/source/server/node_modules/@scrypted/node-pty
scrypted> npm error command failed
scrypted> npm error command sh -c prebuild-install || node-gyp rebuild
scrypted> npm error prebuild-install warn install getaddrinfo EAI_AGAIN github.com
scrypted> npm error gyp info it worked if it ends with ok
scrypted> npm error gyp info using node-gyp@10.1.0
scrypted> npm error gyp info using node@20.18.1 | linux | x64
scrypted> npm error gyp info find Python using Python version 3.12.8 found at "/nix/store/c9m6yd8fg1flz2j5r4bif1ib5j20a0cy-python3-3.12.8/bin/python3"
scrypted> npm error gyp WARN read config.gypi ENOENT: no such file or directory, open '/nix/store/qwrzxkqmsspprgq9s5j8bcr45lkign4k-nodejs-22.11.0-source/include/node/config.gypi'
scrypted> npm error gyp info spawn /nix/store/c9m6yd8fg1flz2j5r4bif1ib5j20a0cy-python3-3.12.8/bin/python3
scrypted> npm error gyp info spawn args [
scrypted> npm error gyp info spawn args '/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
scrypted> npm error gyp info spawn args 'binding.gyp',
scrypted> npm error gyp info spawn args '-f',
scrypted> npm error gyp info spawn args 'make',
scrypted> npm error gyp info spawn args '-I',
scrypted> npm error gyp info spawn args '/build/source/server/node_modules/@scrypted/node-pty/build/config.gypi',
scrypted> npm error gyp info spawn args '-I',
scrypted> npm error gyp info spawn args '/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
scrypted> npm error gyp info spawn args '-I',
scrypted> npm error gyp info spawn args '/nix/store/qwrzxkqmsspprgq9s5j8bcr45lkign4k-nodejs-22.11.0-source/common.gypi',
scrypted> npm error gyp info spawn args '-Dlibrary=shared_library',
scrypted> npm error gyp info spawn args '-Dvisibility=default',
scrypted> npm error gyp info spawn args '-Dnode_root_dir=/nix/store/qwrzxkqmsspprgq9s5j8bcr45lkign4k-nodejs-22.11.0-source',
scrypted> npm error gyp info spawn args '-Dnode_gyp_dir=/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/lib/node_modules/npm/node_modules/node-gyp',
scrypted> npm error gyp info spawn args '-Dnode_lib_file=/nix/store/qwrzxkqmsspprgq9s5j8bcr45lkign4k-nodejs-22.11.0-source/$(Configuration)/node.lib',
scrypted> npm error gyp info spawn args '-Dmodule_root_dir=/build/source/server/node_modules/@scrypted/node-pty',
scrypted> npm error gyp info spawn args '-Dnode_engine=v8',
scrypted> npm error gyp info spawn args '--depth=.',
scrypted> npm error gyp info spawn args '--no-parallel',
scrypted> npm error gyp info spawn args '--generator-output',
scrypted> npm error gyp info spawn args 'build',
scrypted> npm error gyp info spawn args '-Goutput_dir=.'
scrypted> npm error gyp info spawn args ]
scrypted> npm error node:internal/modules/cjs/loader:1228
scrypted> npm error throw err;
scrypted> npm error ^
scrypted> npm error
scrypted> npm error Error: Cannot find module 'node-addon-api'
scrypted> npm error Require stack:
scrypted> npm error - /build/source/server/node_modules/@scrypted/node-pty/[eval]
scrypted> npm error at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
scrypted> npm error at Module._load (node:internal/modules/cjs/loader:1051:27)
scrypted> npm error at Module.require (node:internal/modules/cjs/loader:1311:19)
scrypted> npm error at require (node:internal/modules/helpers:179:18)
scrypted> npm error at [eval]:1:1
scrypted> npm error at runScriptInThisContext (node:internal/vm:209:10)
scrypted> npm error at node:internal/process/execution:118:14
scrypted> npm error at [eval]-wrapper:6:24
scrypted> npm error at runScript (node:internal/process/execution:101:62)
scrypted> npm error at evalScript (node:internal/process/execution:133:3) {
scrypted> npm error code: 'MODULE_NOT_FOUND',
scrypted> npm error requireStack: [ '/build/source/server/node_modules/@scrypted/node-pty/[eval]' ]
scrypted> npm error }
scrypted> npm error
scrypted> npm error Node.js v20.18.1
scrypted> npm error gyp: Call to 'node -p "require('node-addon-api').targets"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
scrypted> npm error gyp ERR! configure error
scrypted> npm error gyp ERR! stack Error: `gyp` failed with exit code: 1
scrypted> npm error gyp ERR! stack at ChildProcess.<anonymous> (/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:297:18)
scrypted> npm error gyp ERR! stack at ChildProcess.emit (node:events:518:28)
scrypted> npm error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
scrypted> npm error gyp ERR! System Linux 6.6.63
scrypted> npm error gyp ERR! command "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node" "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
scrypted> npm error gyp ERR! cwd /build/source/server/node_modules/@scrypted/node-pty
scrypted> npm error gyp ERR! node -v v20.18.1
scrypted> npm error gyp ERR! node-gyp -v v10.1.0
scrypted> npm error gyp ERR! not ok
scrypted> npm error A complete log of this run can be found in: /build/cache/_logs/2025-01-09T22_58_28_193Z-debug-0.log
error: build of '/nix/store/jmk16wvfpiz1w398ky4jy2ayrf5z2f5j-scrypted-0.126.0.drv' on 'ssh://root@192.168.20.224' failed: builder for '/nix/store/jmk16wvfpiz1w398ky4jy2ayrf5z2f5j-scrypted-0.126.0.drv' failed with exit code 1
error: builder for '/nix/store/jmk16wvfpiz1w398ky4jy2ayrf5z2f5j-scrypted-0.126.0.drv' failed with exit code 1;
last 25 log lines:
> npm error at require (node:internal/modules/helpers:179:18)
> npm error at [eval]:1:1
> npm error at runScriptInThisContext (node:internal/vm:209:10)
> npm error at node:internal/process/execution:118:14
> npm error at [eval]-wrapper:6:24
> npm error at runScript (node:internal/process/execution:101:62)
> npm error at evalScript (node:internal/process/execution:133:3) {
> npm error code: 'MODULE_NOT_FOUND',
> npm error requireStack: [ '/build/source/server/node_modules/@scrypted/node-pty/[eval]' ]
> npm error }
> npm error
> npm error Node.js v20.18.1
> npm error gyp: Call to 'node -p "require('node-addon-api').targets"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
> 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.<anonymous> (/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:297:18)
> 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.6.63
> npm error gyp ERR! command "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/bin/node" "/nix/store/j7dx1n6m5axf9r2bvly580x2ixx546wq-nodejs-20.18.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
> npm error gyp ERR! cwd /build/source/server/node_modules/@scrypted/node-pty
> npm error gyp ERR! node -v v20.18.1
> npm error gyp ERR! node-gyp -v v10.1.0
> npm error gyp ERR! not ok
> npm error A complete log of this run can be found in: /build/cache/_logs/2025-01-09T22_58_28_193Z-debug-0.log
For full logs, run 'nix log /nix/store/jmk16wvfpiz1w398ky4jy2ayrf5z2f5j-scrypted-0.126.0.drv'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment