!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

208 Members
59 Servers

Load older messages


SenderMessageTime
22 Nov 2023
@whentze:matrix.orgWanja Hentzeright but that has to run outside of the sandbox16:37:15
@whentze:matrix.orgWanja HentzeI'm looking for a pure solution like npmlock2nix (but with support for more insane bullshit)16:37:45
@lily:lily.flowersLily Fosterno? fetchers run in the sandbox in general16:37:48
@whentze:matrix.orgWanja Hentze yes but pre fetchers don't 16:38:05
@lily:lily.flowersLily Fosterfor the node ones they are the same16:38:18
@lily:lily.flowersLily Fosterhttps://github.com/NixOS/nixpkgs/blob/612493c63d4e8af96b9747b70f86d83b8b73937a/pkgs/build-support/node/fetch-npm-deps/default.nix#L16116:38:53
@whentze:matrix.orgWanja Hentze does that work if you don't pass in hash? 16:40:39
@lily:lily.flowersLily Foster
In reply to @whentze:matrix.org
does that work if you don't pass in hash?
if you mean the arg that sets the outputHash on the derivation, sure it'll work i guess but nix won't be happy when the hash doesn't match after the builder finishes
16:44:43
@whentze:matrix.orgWanja Hentzeright, and npmlock2nix et al. compute that hash instead16:46:15
@lily:lily.flowersLily Fosteri'm not sure i follow but also idk what npmlock2nix is, so i'll take your word for it16:47:12
@whentze:matrix.orgWanja Hentzeit parses package-lock.json in pure nix code and can thus create its own FODs16:48:04
@whentze:matrix.orgWanja Hentzeno need to maintain a separate hash out of band16:48:13
@lily:lily.flowersLily Fosteroh, yeah i was gonna have that too for the nixpkgs stuff soon. someone called it terrible though so i haven't, uh, come back and pushed it yet16:49:13
@whentze:matrix.orgWanja Hentzenapalm, floco and the new buildNpmModule stuff do it as well16:49:32
@whentze:matrix.orgWanja Hentzeas does (I believe) dream2niz16:49:51
@whentze:matrix.orgWanja Hentze* as does (I believe) dream2nix16:49:58
@lily:lily.flowersLily Fosterit was part of a bigger restructure of lockfile parsing and fixup, which will also allow dealing with busted lockfiles in nixpkgs without just having to generate your own and vendor it16:50:04
@whentze:matrix.orgWanja HentzeI see, nice ☺️16:50:36
@whentze:matrix.orgWanja Hentzeif you could use any help with that let me know16:50:54
@lily:lily.flowersLily Fosteri mean if you know rust and want to help, i wish i had someone to collab with, because it's hard when it's just me and most people like shitting on node stuff anyway and calling reproducibility "terrible"16:51:31
@whentze:matrix.orgWanja HentzeI do know Rust and I halfway know the lockfile format from working on npmlock2nix16:52:51
@whentze:matrix.orgWanja Hentzethat was all v1 though16:53:00
@lily:lily.flowersLily Fosteryeah we support all v1-3 lockfiles rn (which v1 is shit though and often has incomplete dep graphs store in their lockfiles....)16:53:38
@whentze:matrix.orgWanja Hentzeyes, v1 is shit16:53:59
@whentze:matrix.orgWanja Hentzenpmlock2nix only barely supports v2 and does not support v3 at all16:54:25
@lily:lily.flowersLily Fosteridk i'd rather work on pnpm stuff at this point, but that's because the more i look into it, the more actually sane it looks (yaml lockfiles aside)16:54:45
@whentze:matrix.orgWanja HentzeI think it's dead or dying now because of this16:54:45
@whentze:matrix.orgWanja Hentzewell, my usecase is packaging already existing stuff. and that stuff usually has package.json and package-lock.json16:55:24
@whentze:matrix.orgWanja Hentzeif yarn or pnpm can work with those, then sure why not16:55:57
@hexa:lossy.networkhexawhat prevents projects from moving from a yarn v1 to a v2 lockfile?19:51:18

Show newer messages


Back to Room ListRoom Version: 6