Closed EstebanMacanek closed 8 months ago
Describe the bug
I'm trying to package Sabaki to NixOS, but electron fails to install.
Steps To Reproduce
~/nixpkgs/pkgs/games/sabaki/derivation.nix:
{ pkgs, buildNpmPackage, fetchFromGitHub }: buildNpmPackage rec { name = "sabaki"; version = "0.52.2"; npmDepsHash = "sha256-yloYb6mj1xUccJjZcbD0S45XaqoknzLYmuSgtGbPEJE="; buildInputs = [ pkgs.nodejs ]; src = fetchFromGitHub { owner = "SabakiHQ"; repo = name; rev = "v${version}"; hash = "sha256-FJsZ4N6TJXOGREjgphRrV4DzDSijgTNqtSxng5R/kI0="; }; buildPhase = '' npm install npm run build ''; installPhase = '' mkdir -p $out/opt/ cp -r dist/linux-unpacked/ $out/opt/Sabaki/ ''; }
~/nixpkgs/pkgs/games/sabaki/default.nix :
{ pkgs ? import <nixpkgs> {} }: pkgs.callPackage ./derivation.nix {}
After running nix-build this error gets print:
nix-build
these 3 derivations will be built: /nix/store/5aha9qrskmsjhwbd3cv072b2arxf2cqg-source.drv /nix/store/biwhwvl5cf6alnw20fl8pc7ypf48r56k-sabaki-npm-deps.drv /nix/store/9gbpyrch6zsapypyjgwmqf5miqvhdalh-sabaki.drv these 26 paths will be fetched (62.45 MiB download, 500.48 MiB unpacked): /nix/store/1nxkdymqvwiqz4lfr8aagynixawgkllb-curl-8.6.0 /nix/store/an88x4gd6z4611h53546ad9nadxsxnwn-curl-8.6.0-bin /nix/store/iwcm6ai73nahilw3k39ca913r7m96bw0-curl-8.6.0-dev /nix/store/m255w8wvmx1i9n795s79a0as987c292i-curl-8.6.0-man /nix/store/8afdx4f12b80yjhwzi3hdzvww6grigyk-die-hook /nix/store/4cjqvbp1jbkps185wl8qnbjpf8bdy8j9-gcc-wrapper-13.2.0 /nix/store/r3d8ql1dzpzzf6w968qnhkrawrzna6hk-libkrb5-1.21.2 /nix/store/qardg62av1r74limzx7b5zw1r2bi6sz0-libkrb5-1.21.2-dev /nix/store/ypjw507rvdr5i7a3vn8b7py2db61bd10-libssh2-1.11.0 /nix/store/fdyxlcc967xa7xf0v9c8nci5vbg8xg41-libssh2-1.11.0-dev /nix/store/zajbd64cxvqgimnskbzjdpz8zxrycfd1-libuv-1.47.0-dev /nix/store/vj2ynzq8hdr21cp1s2v3n3vkhhdq24nx-make-shell-wrapper-hook /nix/store/n8fhqjs3123zlzcgzdhp0wvia45wq5nw-mirrors-list /nix/store/ff34iwv5zkcyg70cpixz2apzkhw7l3yp-nghttp2-1.59.0 /nix/store/pi8xkljfs9fd9jlgjbz3m87yvsqmn5zj-nghttp2-1.59.0-dev /nix/store/698shlryspifskz651fcfqfc16pqz6y1-nghttp2-1.59.0-lib /nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1 /nix/store/y167bazzmvpfwya01976rnsyizx724pj-nodejs-20.11.1-source /nix/store/jkb0dqxbsf082klc07zhcjb5q6i1y1zs-npm-build-hook /nix/store/c9ss08blvplg3hy3jzsbfxhk7p4pimcb-npm-config-hook /nix/store/gkynpzar4484fsclirj8134fmf3c743w-npm-install-hook /nix/store/iba01lpg3l1hifqa0rsznf57s7n89wx2-openssl-3.0.13 /nix/store/lyn98k3wv44qja1imwr7m60dr321yya6-openssl-3.0.13-bin /nix/store/a1d3qs8iywd5z3z90sbil6vdrlpgj01v-openssl-3.0.13-dev /nix/store/w7dqfp56qg10wcndxqm5bf8nzlycvw65-prefetch-npm-deps-0.1.0 /nix/store/yq9qag5ak3w15nhcqplnhxpny6295l36-stdenv-linux copying path '/nix/store/jkb0dqxbsf082klc07zhcjb5q6i1y1zs-npm-build-hook' from 'https://cache.nixos.org'... copying path '/nix/store/y167bazzmvpfwya01976rnsyizx724pj-nodejs-20.11.1-source' from 'https://cache.nixos.org'... copying path '/nix/store/8afdx4f12b80yjhwzi3hdzvww6grigyk-die-hook' from 'https://cache.nixos.org'... copying path '/nix/store/4cjqvbp1jbkps185wl8qnbjpf8bdy8j9-gcc-wrapper-13.2.0' from 'https://cache.nixos.org'... copying path '/nix/store/zajbd64cxvqgimnskbzjdpz8zxrycfd1-libuv-1.47.0-dev' from 'https://cache.nixos.org'... copying path '/nix/store/n8fhqjs3123zlzcgzdhp0wvia45wq5nw-mirrors-list' from 'https://cache.nixos.org'... copying path '/nix/store/w7dqfp56qg10wcndxqm5bf8nzlycvw65-prefetch-npm-deps-0.1.0' from 'https://cache.nixos.org'... copying path '/nix/store/m255w8wvmx1i9n795s79a0as987c292i-curl-8.6.0-man' from 'https://cache.nixos.org'... copying path '/nix/store/ff34iwv5zkcyg70cpixz2apzkhw7l3yp-nghttp2-1.59.0' from 'https://cache.nixos.org'... copying path '/nix/store/r3d8ql1dzpzzf6w968qnhkrawrzna6hk-libkrb5-1.21.2' from 'https://cache.nixos.org'... copying path '/nix/store/698shlryspifskz651fcfqfc16pqz6y1-nghttp2-1.59.0-lib' from 'https://cache.nixos.org'... copying path '/nix/store/iba01lpg3l1hifqa0rsznf57s7n89wx2-openssl-3.0.13' from 'https://cache.nixos.org'... copying path '/nix/store/vj2ynzq8hdr21cp1s2v3n3vkhhdq24nx-make-shell-wrapper-hook' from 'https://cache.nixos.org'... copying path '/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1' from 'https://cache.nixos.org'... copying path '/nix/store/yq9qag5ak3w15nhcqplnhxpny6295l36-stdenv-linux' from 'https://cache.nixos.org'... copying path '/nix/store/pi8xkljfs9fd9jlgjbz3m87yvsqmn5zj-nghttp2-1.59.0-dev' from 'https://cache.nixos.org'... copying path '/nix/store/qardg62av1r74limzx7b5zw1r2bi6sz0-libkrb5-1.21.2-dev' from 'https://cache.nixos.org'... copying path '/nix/store/ypjw507rvdr5i7a3vn8b7py2db61bd10-libssh2-1.11.0' from 'https://cache.nixos.org'... copying path '/nix/store/lyn98k3wv44qja1imwr7m60dr321yya6-openssl-3.0.13-bin' from 'https://cache.nixos.org'... copying path '/nix/store/a1d3qs8iywd5z3z90sbil6vdrlpgj01v-openssl-3.0.13-dev' from 'https://cache.nixos.org'... copying path '/nix/store/1nxkdymqvwiqz4lfr8aagynixawgkllb-curl-8.6.0' from 'https://cache.nixos.org'... copying path '/nix/store/an88x4gd6z4611h53546ad9nadxsxnwn-curl-8.6.0-bin' from 'https://cache.nixos.org'... copying path '/nix/store/fdyxlcc967xa7xf0v9c8nci5vbg8xg41-libssh2-1.11.0-dev' from 'https://cache.nixos.org'... copying path '/nix/store/iwcm6ai73nahilw3k39ca913r7m96bw0-curl-8.6.0-dev' from 'https://cache.nixos.org'... building '/nix/store/5aha9qrskmsjhwbd3cv072b2arxf2cqg-source.drv'... trying https://github.com/SabakiHQ/sabaki/archive/v0.52.2.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 3274k 0 3274k 0 0 2191k 0 --:--:-- 0:00:01 --:--:-- 3949k unpacking source archive /build/v0.52.2.tar.gz building '/nix/store/biwhwvl5cf6alnw20fl8pc7ypf48r56k-sabaki-npm-deps.drv'... Running phase: unpackPhase unpacking source archive /nix/store/imnvlk2k32simfjfams5n33j80xn3bi7-source source root is source Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase no configure script, doing nothing Running phase: buildPhase node_modules/7zip-bin node_modules/is-callable node_modules/queue-microtask node_modules/color-string node_modules/color node_modules/update-notifier/node_modules/is-ci node_modules/randombytes node_modules/colorette node_modules/is-ci node_modules/rc node_modules/dir-compare/node_modules/colors node_modules/react-is node_modules/is-core-module node_modules/react-markdown/node_modules/react-is node_modules/colors node_modules/is-date-object node_modules/colorspace node_modules/is-extglob node_modules/react-markdown node_modules/combined-stream node_modules/yargs-unparser/node_modules/is-fullwidth-code-point node_modules/react node_modules/comma-separated-tokens node_modules/is-fullwidth-code-point node_modules/read-config-file node_modules/terser/node_modules/commander node_modules/is-glob node_modules/@babel/code-frame node_modules/concat-stream/node_modules/readable-stream node_modules/is-installed-globally node_modules/dir-compare/node_modules/commander node_modules/readable-stream node_modules/is-negative-zero node_modules/commander node_modules/mocha/node_modules/readdirp node_modules/is-npm node_modules/webpack-cli/node_modules/commander node_modules/readdirp node_modules/is-number-object node_modules/compare-version node_modules/is-number node_modules/rechoir node_modules/is-obj node_modules/concat-map node_modules/regexp.prototype.flags node_modules/is-installed-globally/node_modules/is-path-inside node_modules/concat-stream node_modules/registry-auth-token node_modules/is-plain-obj node_modules/concurrently node_modules/registry-url node_modules/is-plain-object node_modules/config-chain node_modules/remark-breaks node_modules/is-regex node_modules/configstore node_modules/is-shared-array-buffer node_modules/verror/node_modules/core-util-is node_modules/execa/node_modules/is-stream node_modules/core-util-is node_modules/is-stream node_modules/crc node_modules/is-string node_modules/execa/node_modules/cross-spawn node_modules/is-symbol node_modules/cross-spawn node_modules/is-typedarray node_modules/crypto-random-string node_modules/is-weakref node_modules/csstype node_modules/is-yarn-global node_modules/isarray node_modules/date-fns node_modules/electron-osx-sign/node_modules/isbinaryfile node_modules/electron-osx-sign/node_modules/debug node_modules/isbinaryfile node_modules/@babel/generator node_modules/mocha/node_modules/debug node_modules/isexe node_modules/debug node_modules/isobject node_modules/decamelize node_modules/jake node_modules/decode-named-character-reference node_modules/jest-worker node_modules/decompress-response node_modules/js-tokens node_modules/deep-extend node_modules/mocha/node_modules/js-yaml node_modules/default-shell node_modules/js-yaml node_modules/defer-to-connect node_modules/@sabaki/sgf/node_modules/jschardet node_modules/define-properties node_modules/delayed-stream node_modules/jschardet node_modules/remark-parse node_modules/dequal node_modules/jsesc node_modules/remark-rehype node_modules/detect-node node_modules/json-buffer node_modules/require-directory node_modules/diff node_modules/json-parse-even-better-errors node_modules/require-main-filename node_modules/json-schema-traverse node_modules/resolve-cwd node_modules/uvu/node_modules/diff node_modules/json-stringify-safe node_modules/resolve-from node_modules/dir-compare node_modules/json5 node_modules/resolve node_modules/dir-glob node_modules/jsonfile node_modules/responselike node_modules/dmg-builder node_modules/reusify node_modules/app-builder-lib/node_modules/jsonfile node_modules/dmg-license node_modules/keyv node_modules/rimraf node_modules/doken node_modules/roarr node_modules/kind-of node_modules/run-parallel node_modules/kleur node_modules/@babel/helper-function-name node_modules/rxjs node_modules/kuler node_modules/latest-version node_modules/sade node_modules/lazy-val node_modules/concat-stream/node_modules/safe-buffer node_modules/safe-buffer node_modules/loader-runner node_modules/safer-buffer node_modules/yargs-unparser/node_modules/locate-path node_modules/locate-path node_modules/sanitize-filename node_modules/lodash node_modules/sax node_modules/log-symbols node_modules/schema-utils node_modules/logform node_modules/semver-compare node_modules/loose-envify node_modules/semver-diff node_modules/lowercase-keys node_modules/semver node_modules/make-dir/node_modules/semver node_modules/cacheable-request/node_modules/lowercase-keys node_modules/update-notifier/node_modules/semver node_modules/lru-cache node_modules/global-agent/node_modules/semver node_modules/global-agent/node_modules/lru-cache node_modules/serialize-error node_modules/make-dir node_modules/matcher node_modules/serialize-javascript node_modules/mdast-util-definitions node_modules/set-blocking node_modules/mdast-util-from-markdown node_modules/shallow-clone node_modules/mdast-util-to-hast node_modules/shebang-command node_modules/mdast-util-to-string node_modules/shebang-regex node_modules/mdurl node_modules/@babel/helper-get-function-arity node_modules/dolm node_modules/shell-env node_modules/merge-stream node_modules/shell-path node_modules/merge2 node_modules/micromark-core-commonmark node_modules/shell-quote node_modules/micromark-factory-destination node_modules/side-channel node_modules/micromark-factory-label node_modules/signal-exit node_modules/micromark-factory-space node_modules/simple-swizzle node_modules/micromark-factory-title node_modules/slash node_modules/micromark-factory-whitespace node_modules/slice-ansi node_modules/micromark-util-character node_modules/smart-buffer node_modules/micromark-util-chunked node_modules/source-map-support node_modules/micromark-util-classify-character node_modules/source-map node_modules/micromark-util-combine-extensions node_modules/source-map-support/node_modules/source-map node_modules/micromark-util-decode-numeric-character-reference node_modules/micromark-util-decode-string node_modules/space-separated-tokens node_modules/micromark-util-encode node_modules/spawn-command node_modules/micromark-util-html-tag-name node_modules/mocha/node_modules/sprintf-js node_modules/micromark-util-normalize-identifier node_modules/sprintf-js node_modules/micromark-util-resolve-all node_modules/stack-trace node_modules/micromark-util-sanitize-uri node_modules/stat-mode node_modules/@babel/helper-hoist-variables node_modules/micromark-util-subtokenize node_modules/wide-align/node_modules/string-width node_modules/dot-prop node_modules/ansi-align/node_modules/string-width node_modules/micromark-util-symbol node_modules/dotenv-expand node_modules/string-width node_modules/micromark-util-types node_modules/dotenv node_modules/string.prototype.trimend node_modules/micromark node_modules/duplexer3 node_modules/string.prototype.trimstart node_modules/micromatch node_modules/ejs node_modules/concat-stream/node_modules/string_decoder node_modules/mime-db node_modules/electron-builder node_modules/string_decoder node_modules/mime-types node_modules/electron-osx-sign node_modules/shell-env/node_modules/strip-ansi node_modules/mime node_modules/electron-publish node_modules/wide-align/node_modules/strip-ansi node_modules/mimic-response node_modules/electron-to-chromium node_modules/mocha/node_modules/strip-ansi node_modules/minimatch node_modules/electron node_modules/strip-ansi node_modules/app-builder-lib/node_modules/minimatch node_modules/strip-eof node_modules/filelist/node_modules/minimatch node_modules/strip-json-comments node_modules/minimist node_modules/style-to-object node_modules/minipass node_modules/sumchecker node_modules/minizlib node_modules/supports-color node_modules/mocha/node_modules/mkdirp node_modules/mocha/node_modules/supports-color node_modules/extract-zip/node_modules/mkdirp node_modules/builder-util/node_modules/supports-color node_modules/mkdirp node_modules/concurrently/node_modules/supports-color node_modules/mocha node_modules/supports-preserve-symlinks-flag node_modules/mri node_modules/tapable node_modules/tar node_modules/extract-zip/node_modules/ms node_modules/@babel/helper-split-export-declaration node_modules/mocha/node_modules/ms node_modules/temp-file node_modules/terser-webpack-plugin node_modules/ms node_modules/terser node_modules/natsort node_modules/text-hex node_modules/tmp-promise node_modules/tmp node_modules/to-fast-properties node_modules/to-readable-stream node_modules/to-regex-range node_modules/tree-kill node_modules/trim-lines node_modules/triple-beam node_modules/trough node_modules/truncate-utf8-bytes node_modules/tslib node_modules/tunnel node_modules/type-fest node_modules/boxen/node_modules/type-fest node_modules/typedarray-to-buffer node_modules/mocha/node_modules/emoji-regex node_modules/typedarray node_modules/emoji-regex node_modules/unbox-primitive node_modules/enabled node_modules/@babel/helper-validator-identifier node_modules/unified node_modules/encodeurl node_modules/unique-string node_modules/end-of-stream node_modules/unist-builder node_modules/enhanced-resolve node_modules/neo-async node_modules/unist-util-generated node_modules/env-paths node_modules/unist-util-is node_modules/node-addon-api node_modules/envinfo node_modules/unist-util-position node_modules/es-abstract node_modules/node-environment-flags node_modules/unist-util-stringify-position node_modules/es-array-method-boxes-properly node_modules/@babel/highlight node_modules/unist-util-visit-parents node_modules/node-releases node_modules/es-module-lexer node_modules/unist-util-visit node_modules/normalize-path node_modules/es-to-primitive node_modules/normalize-url node_modules/universalify node_modules/electron-publish/node_modules/universalify node_modules/npm-conf node_modules/es6-error node_modules/update-browserslist-db node_modules/npm-run-path node_modules/escalade node_modules/update-notifier node_modules/escape-goat node_modules/object-assign node_modules/uri-js node_modules/escape-string-regexp node_modules/object-inspect node_modules/url-parse-lax node_modules/matcher/node_modules/escape-string-regexp node_modules/object-keys node_modules/utf8-byte-length node_modules/eslint-scope node_modules/object.assign node_modules/util-deprecate node_modules/esm node_modules/es-abstract/node_modules/object.assign node_modules/esprima node_modules/uuid node_modules/object.getownpropertydescriptors node_modules/esrecurse node_modules/uvu node_modules/once node_modules/estraverse node_modules/verror node_modules/onchange node_modules/vfile-message node_modules/esrecurse/node_modules/estraverse node_modules/events node_modules/vfile node_modules/execa node_modules/watchpack node_modules/extend node_modules/webpack-cli node_modules/extract-zip node_modules/webpack-merge node_modules/extsprintf node_modules/webpack-sources node_modules/fast-deep-equal node_modules/webpack node_modules/fast-glob node_modules/one-time node_modules/fast-json-stable-stringify node_modules/@babel/parser node_modules/p-cancelable node_modules/fast-safe-stringify node_modules/which-boxed-primitive node_modules/which-module node_modules/p-finally node_modules/fastest-levenshtein node_modules/execa/node_modules/which node_modules/p-limit node_modules/fastq node_modules/yargs-unparser/node_modules/p-locate node_modules/which node_modules/fd-slicer node_modules/p-locate node_modules/wide-align node_modules/fecha node_modules/p-try node_modules/widest-line node_modules/filelist node_modules/package-json node_modules/wildcard node_modules/fill-range node_modules/mocha/node_modules/path-exists node_modules/winston-transport node_modules/path-exists node_modules/winston node_modules/path-is-absolute node_modules/npm-run-path/node_modules/path-key node_modules/path-key node_modules/yargs-unparser/node_modules/find-up node_modules/yargs-unparser/node_modules/wrap-ansi node_modules/path-parse node_modules/find-up node_modules/path-type node_modules/wrap-ansi node_modules/fix-path node_modules/electron-builder/node_modules/wrap-ansi node_modules/flat node_modules/pend node_modules/fn.name node_modules/wrappy node_modules/picocolors node_modules/write-file-atomic node_modules/picomatch node_modules/form-data node_modules/xdg-basedir node_modules/npm-conf/node_modules/pify node_modules/electron-builder/node_modules/fs-extra node_modules/xmlbuilder node_modules/app-builder-lib/node_modules/fs-extra node_modules/pikaday node_modules/y18n node_modules/fs-extra node_modules/pinkie-promise node_modules/@electron/universal/node_modules/fs-extra node_modules/electron-builder/node_modules/y18n node_modules/pinkie node_modules/fs-minipass node_modules/yallist node_modules/pkg-dir node_modules/fs.realpath node_modules/@babel/template node_modules/global-agent/node_modules/yallist node_modules/plist node_modules/mocha/node_modules/fsevents node_modules/yargs-unparser/node_modules/yargs-parser node_modules/preact node_modules/fsevents node_modules/yargs-parser node_modules/function-bind node_modules/electron-builder/node_modules/yargs-parser node_modules/concurrently/node_modules/yargs-parser node_modules/function.prototype.name node_modules/functions-have-names node_modules/yargs-unparser node_modules/get-caller-file node_modules/yargs-unparser/node_modules/yargs node_modules/get-intrinsic node_modules/yargs node_modules/get-stream node_modules/got/node_modules/get-stream node_modules/cacheable-request/node_modules/get-stream node_modules/get-symbol-description node_modules/glob-parent node_modules/glob-to-regexp node_modules/mocha/node_modules/glob node_modules/glob node_modules/global-agent node_modules/global-dirs node_modules/global-tunnel-ng node_modules/globals node_modules/globalthis node_modules/globby node_modules/got node_modules/@babel/traverse node_modules/graceful-fs node_modules/graceful-readlink node_modules/growl node_modules/has-bigints node_modules/has-flag node_modules/@babel/types node_modules/jest-worker/node_modules/has-flag node_modules/@blakeembrey/deque node_modules/has-property-descriptors node_modules/prepend-http node_modules/has-symbols node_modules/electron-builder/node_modules/yargs node_modules/prettier node_modules/has-tostringtag node_modules/concurrently/node_modules/yargs node_modules/has-yarn node_modules/yauzl node_modules/process-nextick-args node_modules/@webpack-cli/info node_modules/has node_modules/hast-util-whitespace node_modules/progress node_modules/prop-types node_modules/he node_modules/hosted-git-info node_modules/property-information node_modules/http-cache-semantics node_modules/proto-list node_modules/http-proxy-agent node_modules/pseudomap node_modules/https-proxy-agent node_modules/pump node_modules/iconv-corefoundation node_modules/punycode node_modules/@sabaki/sgf/node_modules/iconv-lite node_modules/pupa node_modules/@sabaki/shudan node_modules/iconv-lite node_modules/dmg-builder/node_modules/iconv-lite node_modules/ieee754 node_modules/ignore node_modules/import-lazy node_modules/import-local node_modules/imurmurhash node_modules/inflight node_modules/inherits copying path '/nix/store/gkynpzar4484fsclirj8134fmf3c743w-npm-install-hook' from 'https://cache.nixos.org'... node_modules/ini node_modules/global-dirs/node_modules/ini node_modules/inline-style-parser node_modules/internal-slot node_modules/interpret node_modules/is-arrayish node_modules/is-bigint node_modules/is-binary-path node_modules/is-boolean-object node_modules/is-buffer node_modules/boxen node_modules/brace-expansion node_modules/filelist/node_modules/brace-expansion node_modules/braces node_modules/@webpack-cli/serve node_modules/browser-stdout node_modules/browserslist node_modules/buffer-alloc-unsafe node_modules/buffer-alloc node_modules/buffer-crc32 node_modules/buffer-equal node_modules/buffer-fill node_modules/buffer-from node_modules/buffer node_modules/builder-util-runtime node_modules/@dabh/diagnostics node_modules/builder-util node_modules/cacheable-request node_modules/call-bind node_modules/camelcase node_modules/boxen/node_modules/camelcase node_modules/caniuse-lite node_modules/chalk node_modules/concurrently/node_modules/chalk node_modules/character-entities node_modules/mocha/node_modules/chokidar node_modules/chokidar node_modules/chownr node_modules/chrome-trace-event node_modules/chromium-pickle-js node_modules/update-notifier/node_modules/ci-info node_modules/ci-info node_modules/classnames node_modules/cli-boxes node_modules/cli-truncate node_modules/mocha/node_modules/cliui node_modules/@xtuc/ieee754 node_modules/cliui node_modules/concurrently/node_modules/cliui node_modules/@xtuc/long node_modules/clone-deep node_modules/clone-response node_modules/acorn-import-assertions node_modules/color-convert node_modules/acorn node_modules/wrap-ansi/node_modules/color-convert node_modules/agent-base node_modules/@develar/schema-utils node_modules/color-name node_modules/ajv-keywords node_modules/ajv node_modules/concurrently/node_modules/color-name node_modules/app-builder-lib node_modules/ansi-align node_modules/ansi-colors node_modules/shell-env/node_modules/ansi-regex node_modules/mocha/node_modules/argparse node_modules/wide-align/node_modules/ansi-regex node_modules/argparse node_modules/ansi-align/node_modules/ansi-regex node_modules/argv-split node_modules/mocha/node_modules/ansi-regex node_modules/ansi-regex node_modules/ansi-styles node_modules/jake/node_modules/ansi-styles node_modules/anymatch node_modules/app-builder-bin node_modules/@sindresorhus/is node_modules/array-union node_modules/array.prototype.reduce node_modules/onchange/node_modules/arrify node_modules/asar node_modules/assert-plus node_modules/@discoveryjs/json-ext node_modules/astral-regex node_modules/@electron/get node_modules/async-exit-hook node_modules/async node_modules/@szmarczak/http-timer node_modules/asynckit node_modules/at-least-node node_modules/bail node_modules/balanced-match node_modules/base64-js node_modules/binary-extensions node_modules/bluebird-lst node_modules/bluebird node_modules/boolean node_modules/@jridgewell/gen-mapping node_modules/@electron/remote node_modules/@tootallnate/once node_modules/@types/debug node_modules/@types/eslint-scope node_modules/@jridgewell/resolve-uri node_modules/@jridgewell/set-array node_modules/@jridgewell/source-map node_modules/@types/eslint node_modules/@jridgewell/sourcemap-codec node_modules/@jridgewell/trace-mapping node_modules/@types/estree node_modules/@electron/universal node_modules/@types/fs-extra node_modules/@types/glob node_modules/@types/hast node_modules/@malept/cross-spawn-promise node_modules/@types/json-schema node_modules/@types/scheduler node_modules/@malept/flatpak-bundler node_modules/@types/mdast node_modules/@types/unist node_modules/@mariotacke/color-thief node_modules/@types/mdurl node_modules/@types/verror node_modules/@types/ms node_modules/electron/node_modules/@types/node node_modules/@types/minimatch node_modules/@types/yargs-parser node_modules/@types/plist node_modules/@types/yargs node_modules/@types/prop-types node_modules/@types/react node_modules/@nodelib/fs.scandir node_modules/@types/node node_modules/@webassemblyjs/ast node_modules/@webassemblyjs/floating-point-hex-parser node_modules/@nodelib/fs.stat node_modules/@nodelib/fs.walk node_modules/@primer/octicons node_modules/@webassemblyjs/helper-wasm-bytecode node_modules/@webassemblyjs/helper-wasm-section node_modules/@webassemblyjs/helper-api-error node_modules/@webassemblyjs/ieee754 node_modules/@sabaki/go-board node_modules/@webassemblyjs/leb128 node_modules/@webassemblyjs/helper-buffer node_modules/@webassemblyjs/utf8 node_modules/@webassemblyjs/helper-numbers node_modules/@webassemblyjs/wasm-edit node_modules/@webassemblyjs/wasm-parser node_modules/@webassemblyjs/wasm-gen node_modules/@webassemblyjs/wast-printer node_modules/@webassemblyjs/wasm-opt node_modules/@webpack-cli/configtest node_modules/@sabaki/immutable-gametree node_modules/@sabaki/boardmatcher node_modules/@sabaki/gtp node_modules/@sabaki/influence node_modules/@sabaki/i18n node_modules/@sabaki/deadstones node_modules/@sabaki/sgf buildPhase completed in 30 seconds Running phase: fixupPhase shrinking RPATHs of ELF executables and libraries in /nix/store/2v96q0dddna6gpbwyczxq6smnjhgfqmm-sabaki-npm-deps checking for references to /build/ in /nix/store/2v96q0dddna6gpbwyczxq6smnjhgfqmm-sabaki-npm-deps... patching script interpreter paths in /nix/store/2v96q0dddna6gpbwyczxq6smnjhgfqmm-sabaki-npm-deps copying path '/nix/store/c9ss08blvplg3hy3jzsbfxhk7p4pimcb-npm-config-hook' from 'https://cache.nixos.org'... building '/nix/store/9gbpyrch6zsapypyjgwmqf5miqvhdalh-sabaki.drv'... Running phase: unpackPhase unpacking source archive /nix/store/imnvlk2k32simfjfams5n33j80xn3bi7-source source root is source Running phase: patchPhase Executing npmConfigHook Configuring npm Validating consistency between /build/source/package-lock.json and /nix/store/2v96q0dddna6gpbwyczxq6smnjhgfqmm-sabaki-npm-deps/package-lock.json Fixing lockfile Installing dependencies npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) npm WARN deprecated electron-osx-sign@0.6.0: Please use @electron/osx-sign moving forward. Be aware the API is slightly different added 751 packages, and audited 752 packages in 23s 131 packages are looking for funding run `npm fund` for details found 0 vulnerabilities patching script interpreter paths in node_modules node_modules/webpack-cli/bin/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/electron-builder/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/electron-builder/install-app-deps.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/jake/bin/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/jake/bin/bash_completion.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/5l50g7kzj7v0rdhshld1vx46rf2k5lf9-bash-5.2p26/bin/bash" node_modules/which/bin/node-which: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/@electron/get/node_modules/semver/bin/semver.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/semver-diff/node_modules/semver/bin/semver.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/extract-zip/node_modules/mkdirp/bin/cmd.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/extract-zip/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/7zip-bin/7x.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5l50g7kzj7v0rdhshld1vx46rf2k5lf9-bash-5.2p26/bin/bash" node_modules/7zip-bin/linux/x64/do-build.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5l50g7kzj7v0rdhshld1vx46rf2k5lf9-bash-5.2p26/bin/bash" node_modules/7zip-bin/linux/x64/build.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5l50g7kzj7v0rdhshld1vx46rf2k5lf9-bash-5.2p26/bin/bash" node_modules/dir-compare/src/cli/dircompare.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/prettier/bin-prettier.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/semver/bin/semver: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/dolm/tools/cli/main.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/execa/node_modules/which/bin/which: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/import-local/fixtures/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/rimraf/bin.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/asar/bin/asar.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/electron/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/@babel/parser/bin/babel-parser.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/he/bin/he: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/terser/bin/uglifyjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/terser/bin/terser: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/terser/bin/terser.mjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/update-browserslist-db/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/mkdirp/bin/cmd.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/tree-kill/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/envinfo/dist/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/uvu/bin.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/webpack/bin/webpack.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/rc/cli.js: interpreter directive changed from "#! /usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/ejs/bin/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/mocha/node_modules/which/bin/which: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/mocha/node_modules/mkdirp/bin/cmd.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/mocha/node_modules/js-yaml/bin/js-yaml.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/mocha/lib/cli/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/mocha/bin/_mocha: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/mocha/bin/mocha: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/resolve/bin/resolve: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/concurrently/dist/bin/concurrently.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/browserslist/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/is-ci/bin.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/make-dir/node_modules/semver/bin/semver.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/uuid/dist/bin/uuid: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/acorn/bin/acorn: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/esprima/bin/esvalidate.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/esprima/bin/esparse.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/electron-osx-sign/bin/electron-osx-flat.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/electron-osx-sign/bin/electron-osx-sign.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/json5/lib/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/js-yaml/bin/js-yaml.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/flat/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/app-builder-lib/node_modules/semver/bin/semver.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/jsesc/bin/jsesc: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/onchange/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/loose-envify/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/mime/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/package-json/node_modules/semver/bin/semver.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/global-agent/node_modules/semver/bin/semver.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/update-notifier/node_modules/semver/bin/semver.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" node_modules/update-notifier/node_modules/is-ci/bin.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/3k43a25ijnmfpkkyg94npv85ksc8nhly-nodejs-20.11.1/bin/node" npm ERR! code 1 npm ERR! path /build/source/node_modules/electron npm ERR! command failed npm ERR! command sh -c node install.js npm ERR! RequestError: getaddrinfo EAI_AGAIN github.com npm ERR! at ClientRequest.<anonymous> (/build/source/node_modules/got/source/request-as-event-emitter.js:178:14) npm ERR! at Object.onceWrapper (node:events:633:26) npm ERR! at ClientRequest.emit (node:events:530:35) npm ERR! at origin.emit (/build/source/node_modules/@szmarczak/http-timer/source/index.js:37:11) npm ERR! at TLSSocket.socketErrorListener (node:_http_client:495:9) npm ERR! at TLSSocket.emit (node:events:518:28) npm ERR! at emitErrorNT (node:internal/streams/destroy:169:8) npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:128:3) npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:82:21) npm ERR! Log files were not written due to an error writing to the directory: /nix/store/2v96q0dddna6gpbwyczxq6smnjhgfqmm-sabaki-npm-deps/_logs npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal error: builder for '/nix/store/9gbpyrch6zsapypyjgwmqf5miqvhdalh-sabaki.drv' failed with exit code 1; last 10 log lines: > npm ERR! at origin.emit (/build/source/node_modules/@szmarczak/http-timer/source/index.js:37:11) > npm ERR! at TLSSocket.socketErrorListener (node:_http_client:495:9) > npm ERR! at TLSSocket.emit (node:events:518:28) > npm ERR! at emitErrorNT (node:internal/streams/destroy:169:8) > npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:128:3) > npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:82:21) > > npm ERR! Log files were not written due to an error writing to the directory: /nix/store/2v96q0dddna6gpbwyczxq6smnjhgfqmm-sabaki-npm-deps/_logs > npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal > For full logs, run 'nix-store -l /nix/store/9gbpyrch6zsapypyjgwmqf5miqvhdalh-sabaki.drv'.
Expected behavior
nix-build is able to install electron.
nix-env --version output
nix-env --version
nix-env (Nix) 2.18.1
Priorities
Add :+1: to issues you find important.
After reading the error message again, i concluded this isn't a nix bug but a http-timer (node module) bug.
Describe the bug
I'm trying to package Sabaki to NixOS, but electron fails to install.
Steps To Reproduce
~/nixpkgs/pkgs/games/sabaki/derivation.nix:
~/nixpkgs/pkgs/games/sabaki/default.nix :
After running
nix-build
this error gets print:Expected behavior
nix-build
is able to install electron.nix-env --version
outputnix-env (Nix) 2.18.1
Priorities
Add :+1: to issues you find important.