Nix NodeJS | 203 Members | |
| 58 Servers |
| Sender | Message | Time |
|---|---|---|
| 1 Nov 2023 | ||
| 23:45:38 | ||
| https://github.com/SpikeHD/Dorion/ How can I build this from src with nix? Couldn't find any other pkgs to based off in nixpkgs (that use tauri) https://github.com/SpikeHD/Dorion/blob/main/.github/workflows/build.yml here the build.yml | 23:45:47 | |
| Tauri is iirc tricky as you need both rust, nodejs and tauri tools. Chances are that you will either have to write the whole thing by yourself or at least with custom buildphases for buildNpmPackage. You might also be able (though I got no clue how to do that "right") to build the rust and npm parts separately and the merge at some point. Maybe asking in the general NixOS matrix channel might be a good idea here too. | 23:51:55 | |
| * Tauri is iirc tricky as you need rust, nodejs and tauri tools. Chances are that you will either have to write the whole thing by yourself or at least with custom buildphases for buildNpmPackage. You might also be able (though I got no clue how to do that "right") to build the rust and npm parts separately and the merge at some point. Maybe asking in the general NixOS matrix channel might be a good idea here too. | 23:52:13 | |
| 5 Nov 2023 | ||
| has anyone worked on a prisma project with nixos before? Extremely confusing to me as there are so many issues | 10:46:07 | |
| I would appreciate help | 10:46:18 | |
| if anyone has experience | 10:46:21 | |
| ok i just stopped using it now too frustrating | 16:31:30 | |
| 6 Nov 2023 | ||
In reply to @peter-lustig:matrix.orgYou need to set env vars and it will complain but still work | 08:59:57 | |
| 09:00:06 | |
| 7 Nov 2023 | ||
| 14:33:08 | ||
| 8 Nov 2023 | ||
| Hey! I'm trying to use NIX_NPM_TOKENS feature, but it's giving me back TAR_BAD_ARCHIVE. How can I debug what's the issue with file? | 15:39:07 | |
In reply to @szucsitg:matrix.orgcan you share the whole build log? | 15:41:27 | |
you might also be able to get useful info out of RUST_LOG=trace on the fetcher | 15:42:05 | |
| I added RUST_LOG envvar to the flake globally but didn't change the output of the logs at all... | 15:55:00 | |
| verb argv "ci" "--ignore-scripts" "--logs-dir" "$HOME" "--loglevel" "verbose" "--legacy-peer-deps" npm verb logfile logs-max:10 dir:/private/tmp/nix-build-enterpise-fe-1.0.0.drv-0/43vw5pdp546dz14fkdzs3mvrkgx78b0x-source/$HOME/2023-11-08T15_26_25_613Z- npm verb logfile /private/tmp/nix-build-enterpise-fe-1.0.0.drv-0/43vw5pdp546dz14fkdzs3mvrkgx78b0x-source/$HOME/2023-11-08T15_26_25_613Z-debug-0.log npm WARN tar TAR_BAD_ARCHIVE: Unrecognized archive format npm WARN tarball cached data for @xlts.dev/angular@https://registry.xlts.dev/@xlts.dev/angular/-/angular-1.9.3.tgz (sha512-0LPHXw0wcBKXag3HXq6NQICkgogUeWnKyYJZuBHmw/bBQ0ySwc5Z2cy7sgY2B8yyvN5heYVF5v8EdspABwwQ0w==) seems to be corrupted. Refreshing cache npm WARN ... npm WARN tarball tarball data for @xlts.dev/angular@https://registry.xlts.dev/@xlts.dev/angular/-/angular-1.9.3.tgz (sha512-0LPHXw0wcBKXag3HXq6NQICkgogUeWnKyYJZuBHmw/bBQ0ySwc5Z2cy7sgY2B8yyvN5heYVF5v8EdspABwwQw==) seems to be corrupted. Trying again. npm WARN ... npm verb stack Error: request to https://registry.xlts.dev/@xlts.dev/angular/-/angular-1.9.3.tgz failed: cache mode is 'only-if-cached' but no cached response is available. npm verb stack at cacheFetch (/nix/store/fwgfw6i5q1hv49bgfl96bmzv72l98khy-nodejs-18.18.2/lib/node_modules/npm/node_modules/make-fetch-happen/lib/cache/index.js:12:13) npm verb stack at async fetch (/nix/store/fwgfw6i5q1hv49bgfl96bmzv72l98khy-nodejs-18.18.2/lib/node_modules/npm/node_modules/make-fetch-happen/lib/fetch.js:98:7) npm verb cwd /private/tmp/nix-build-enterpise-fe-1.0.0.drv-0/vjwq323qvid100wrhzm7r65vg77g9fkr-source npm verb Darwin 22.6.0 npm verb node v18.18.2 npm verb npm v9.8.1 npm ERR! code ENOTCACHED npm ERR! request to https://registry.xlts.dev/@xlts.dev/angular/-/angular-1.9.3.tgz failed: cache mode is 'only-if-cached' but no cached response is available. npm verb exit 1 npm verb unfinished npm timer reify 1699458585475 npm verb unfinished npm timer reify:unpack 1699458585632 npm verb unfinished npm timer reifyNode:node_modules/@xlts.dev/angular 1699458585646 npm verb code 1 | 15:55:16 | |
In reply to @szucsitg:matrix.orgi'm not sure where "flake globally" would be given there is no globals for flakes (much less for env vars). but also that would only affect the fetcher and your log is post-fetcher | 15:58:52 | |
Can you find the store path for npmDeps on your derivation and check the contents of /nix/store/.../_cacache/content-v2/sha512/d0/b3/c75f0d307012976a0dc75eae8d4080a48288147969cac98259b811e6c3f6c1434c92c1ce59d9ccbbb2063607ccb2bcde61798545e6ff0476ca40070c10d3? | 15:59:11 | |
| (i would fill in the store path for you, but you didn't provide full logs so i don't have it) | 15:59:48 | |
I also read it back, that it should be added to the daemon, but I don't really want that, so I tried pre and postpatch hooks, but it didn't work, so I added to the flake as env.NIX_NPM_TOKENS | 16:00:02 | |
In reply to @szucsitg:matrix.orgYou can sorta add it there, just be aware that it will leak the secrets to the nix store like that | 16:00:43 | |
| (and nix store is world-readable by all local users) | 16:00:56 | |