!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

209 Members
59 Servers

Load older messages


SenderMessageTime
31 Oct 2023
@whentze:matrix.orgWanja Hentzebecause I really really want to not prefetch19:56:51
@lily:lily.flowersLily Foster Would you be interested in testing importNpmLock functionality when we have that ready? It'll function similarly to the importCargoLock tooling from rust and won't require prefetched FODs 19:57:37
@whentze:matrix.orgWanja Hentzeoh nice20:12:10
@whentze:matrix.orgWanja Hentzeyes for sure!20:12:13
@daniel:nopemail.orgdaniel
In reply to @emma:conduit.rory.gay
hint: i had to write my own derivation to get it to work

Off topic but is this really true?

 

I mean, there is this: https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/dotnet.section.md#using-many-sdks-in-a-workflow-using-many-sdks-in-a-workflow

20:17:17
@whentze:matrix.orgWanja Hentze
In reply to @lily:lily.flowers
(tbh the nixpkgs one would be a lot better if i either had time or someone else to collaborate on it with too...)
we can also collaborate when I have time again. I don't know too much npm stuff but am decent at nix and rust
20:17:41
@joepie91:pixie.town@joepie91:pixie.town
In reply to @whentze:matrix.org
joepie91 🏳️‍🌈: so which of the ~dozen or so npm/nix things should I use
well that I can't exhaustively answer :p I've been using yarn2nix and that has worked Well Enough so far (I use yarn v1 due to some functionality in npm being broken since forever)
20:26:18
@whentze:matrix.orgWanja Hentzeoh true that exists too20:27:32
@joepie91:pixie.town@joepie91:pixie.town(also, an issue I've had with some npm/nix tooling in the past was that it went off package.json, and expected you to pre-generate a nix expression in the project's repository. which is not helpful when it's not your project... yarn2nix seems to have no trouble dealing with third-party lockfiles at evaluation time)20:29:45
@janik0:matrix.org@janik0:matrix.orgis there a way to package stuff that only provides a pnpm lock file? Like for example https://github.com/renovatebot/renovate using https://github.com/cvent/pnpm-lock-export which get's somtimes used in nixpkgs like for woodpecker doesn't work in this case because https://github.com/renovatebot/renovate/blob/main/pnpm-lock.yaml#L358-L360 uses a file which ends up as undefined version so the fetcher just breaks because it doesnt know what to do with that information.21:45:20
1 Nov 2023
@emma:conduit.rory.gayEmma [it/its] ⚡️
In reply to @daniel:nopemail.org

Off topic but is this really true?

 

I mean, there is this: https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/dotnet.section.md#using-many-sdks-in-a-workflow-using-many-sdks-in-a-workflow

yeah i didnt know about that at the time
15:58:34
@niko:conduit.rsnyanbinary joined the room.23:45:38
@niko:conduit.rsnyanbinaryhttps://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.yml23:45:47
@c0ba1t:matrix.orgCobaltTauri 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
@c0ba1t:matrix.orgCobalt* 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
@peter-lustig:matrix.orgpeter-lustighas anyone worked on a prisma project with nixos before? Extremely confusing to me as there are so many issues10:46:07
@peter-lustig:matrix.orgpeter-lustigI would appreciate help10:46:18
@peter-lustig:matrix.orgpeter-lustigif anyone has experience10:46:21
@peter-lustig:matrix.orgpeter-lustigok i just stopped using it now too frustrating16:31:30
6 Nov 2023
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @peter-lustig:matrix.org
has anyone worked on a prisma project with nixos before? Extremely confusing to me as there are so many issues
You need to set env vars and it will complain but still work
08:59:57
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
  PRISMA_MIGRATION_ENGINE_BINARY = "${prisma-engines}/bin/migration-engine";
  PRISMA_QUERY_ENGINE_BINARY = "${prisma-engines}/bin/query-engine";
  PRISMA_QUERY_ENGINE_LIBRARY = "${prisma-engines}/lib/libquery_engine.node";
09:00:06
7 Nov 2023
@szucsitg:matrix.orgszucsitg joined the room.14:33:08
8 Nov 2023
@szucsitg:matrix.orgszucsitgHey! 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
@lily:lily.flowersLily Foster
In reply to @szucsitg:matrix.org
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?
can you share the whole build log?
15:41:27
@lily:lily.flowersLily Foster you might also be able to get useful info out of RUST_LOG=trace on the fetcher 15:42:05
@szucsitg:matrix.orgszucsitgI added RUST_LOG envvar to the flake globally but didn't change the output of the logs at all...15:55:00
@szucsitg:matrix.orgszucsitg 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
@lily:lily.flowersLily Foster
In reply to @szucsitg:matrix.org
I added RUST_LOG envvar to the flake globally but didn't change the output of the logs at all...
i'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
@lily:lily.flowersLily Foster 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
@lily:lily.flowersLily Foster(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

Show newer messages


Back to Room ListRoom Version: 6