Skip to content

Instantly share code, notes, and snippets.

@nerosnm
Created October 20, 2023 08:29
Show Gist options
  • Save nerosnm/02f7f966093c18b8baa7d125453a87e2 to your computer and use it in GitHub Desktop.
Save nerosnm/02f7f966093c18b8baa7d125453a87e2 to your computer and use it in GitHub Desktop.
iosevka-custom *actual* build failure
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/wvyam2zvrdyj5gki3dzf8wjmvm1lbxks-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
Executing npmConfigHook
Configuring npm
Validating consistency between /private/tmp/nix-build-iosevka-custom-27.2.1.drv-0/source/package-lock.json and /nix/store/zc7zszng2pw107x5hhbghgc8fqpzbibg-iosevka-custom-27.2.1-npm-deps/package-lock.json
Installing dependencies
added 322 packages, and audited 323 packages in 4s
94 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
patching script interpreter paths in node_modules
node_modules/node-gyp-build/bin.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/node-gyp-build/build-test.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/node-gyp-build/optional.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/node-addon-api/tools/conversion.js: interpreter directive changed from "#! /usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/wawoff2/bin/woff2_compress.js: interpreter directive changed from "#! /usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/wawoff2/bin/woff2_decompress.js: interpreter directive changed from "#! /usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/rimraf/bin.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/eslint-plugin-import/node_modules/semver/bin/semver.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/resolve/bin/resolve: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/acorn/bin/acorn: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/prettier/bin/prettier.cjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/harfbuzzjs/build.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/zqx1fik7mcyg1037s015kfbw2zq0qhqn-bash-5.2-p15/bin/bash"
node_modules/harfbuzzjs/build-subset.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/zqx1fik7mcyg1037s015kfbw2zq0qhqn-bash-5.2-p15/bin/bash"
node_modules/verda/bin/verda: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/verda/node_modules/which/bin/node-which: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/otb-ttc-bundle/bin/otb-ttc-bundle: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/esmangle/bin/esmangle.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/esmangle/node_modules/esprima/bin/esparse.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/esmangle/node_modules/esprima/bin/esvalidate.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/esmangle/node_modules/source-map/test/run-tests.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/esmangle/node_modules/escodegen/bin/esgenerate.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/esmangle/node_modules/escodegen/bin/escodegen.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/unicoderegexp/extractRegExpsFromXRegExp.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/js-yaml/bin/js-yaml.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/esprima/bin/esparse.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/esprima/bin/esvalidate.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/pegjs/bin/pegjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/patel/bin/patel-c: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/semver/bin/semver.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/json5/lib/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/cross-spawn/node_modules/which/bin/node-which: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/traverse/examples/stringify.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/eslint-config-prettier/bin/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/eslint/bin/eslint.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/escodegen/bin/esgenerate.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/escodegen/bin/escodegen.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/uuid/dist/bin/uuid: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
node_modules/which/bin/which.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node"
npm ERR! code 1
npm ERR! path /private/tmp/nix-build-iosevka-custom-27.2.1.drv-0/source/node_modules/nice-napi
npm ERR! command failed
npm ERR! command sh -c node-gyp-build
npm ERR! make: Entering directory '/private/tmp/nix-build-iosevka-custom-27.2.1.drv-0/source/node_modules/nice-napi/build'
npm ERR! CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
npm ERR! LIBTOOL-STATIC Release/nothing.a
npm ERR! make: Leaving directory '/private/tmp/nix-build-iosevka-custom-27.2.1.drv-0/source/node_modules/nice-napi/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.4.0
npm ERR! gyp info using node@18.18.0 | darwin | arm64
npm ERR! gyp info find Python using Python version 3.10.12 found at "/nix/store/g5cm6iik6p4k39cj9k7a6sg2p09hl7wf-python3-3.10.12/bin/python3"
npm ERR! gyp WARN read config.gypi ENOENT: no such file or directory, open '/nix/store/j78x8qrkmwcnw3x2130ydwfqxj7b560a-nodejs-18.18.0-source/include/node/config.gypi'
npm ERR! gyp info spawn /nix/store/g5cm6iik6p4k39cj9k7a6sg2p09hl7wf-python3-3.10.12/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/private/tmp/nix-build-iosevka-custom-27.2.1.drv-0/source/node_modules/nice-napi/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/nix/store/j78x8qrkmwcnw3x2130ydwfqxj7b560a-nodejs-18.18.0-source/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/nix/store/j78x8qrkmwcnw3x2130ydwfqxj7b560a-nodejs-18.18.0-source',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/nix/store/j78x8qrkmwcnw3x2130ydwfqxj7b560a-nodejs-18.18.0-source/$(Configuration)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/private/tmp/nix-build-iosevka-custom-27.2.1.drv-0/source/node_modules/nice-napi',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! sh: ./gyp-mac-tool: /usr/bin/env: bad interpreter: Operation not permitted
npm ERR! make: *** [../node-addon-api/nothing.target.mk:160: Release/nothing.a] Error 126
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:517:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12)
npm ERR! gyp ERR! System Darwin 22.6.0
npm ERR! gyp ERR! command "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/bin/node" "/nix/store/9fba773wpniyjpwzi19ipyvjv3m3djs6-nodejs-18.18.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /private/tmp/nix-build-iosevka-custom-27.2.1.drv-0/source/node_modules/nice-napi
npm ERR! gyp ERR! node -v v18.18.0
npm ERR! gyp ERR! node-gyp -v v9.4.0
npm ERR! gyp ERR! not ok

npm ERR! Log files were not written due to an error writing to the directory: /nix/store/zc7zszng2pw107x5hhbghgc8fqpzbibg-iosevka-custom-27.2.1-npm-deps/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment