!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

210 Members
62 Servers

Load older messages


SenderMessageTime
22 Nov 2023
@hexa:lossy.networkhexafor https://github.com/pyinsteon/insteon-panel/blob/0.4.0/yarn.lock15:11:23
@hexa:lossy.networkhexaI'm looking for advice on this error15:11:47
@hexa:lossy.networkhexa
  src = fetchFromGitHub {
    owner = "pyinsteon";
    repo = "insteon-panel";
    rev = "refs/tags/${version}";
    hash = "sha256-jpfRgME6MJdItrOldeN12W+bCeIi9ACH7oQ0GFyFqzo=";
  };

  nativeBuildInputs = [
    nodejs
    setuptools
    yarn
  ];

  yarnDeps = fetchYarnDeps {
    yarnLock = src + "/yarn.lock";
    hash = "";
  };
15:12:13
@hexa:lossy.networkhexathis is roughly what I have15:12:17
@lily:lily.flowersLily Fosterthat fetcher only does v1 lockfiles rn15:12:41
@lily:lily.flowersLily Foster(if i could scam someone to join the nixpkgs node.js team, we could probably make more progress on getting it working with yarn-berry πŸ‘‰πŸ»πŸ‘ˆπŸ» )15:14:14
@hexa:lossy.networkhexaah cool15:16:41
@hexa:lossy.networkhexa that lock file should say version: 2 somewhere 15:16:50
@whentze:matrix.orgWanja Hentzewait, the stuff in nixpkgs reads lockfiles?15:16:54
@hexa:lossy.networkhexa instead it says __metadata.version: 6 15:17:05
@whentze:matrix.orgWanja HentzeI thought it didn't, and that's why one has to prefetch15:17:10
@janne.hess:helsinki-systems.deJanne Heß
In reply to @hexa:lossy.network
instead it says __metadata.version: 6
Take a look at the hedgedoc package, I hacked it together there as well and it seems to work well enough
15:18:58
@hexa:lossy.networkhexathanks, but I suddenly lost interest πŸ˜„ 15:19:40
@hexa:lossy.networkhexawill keep that in mind, if something worthy comes along15:19:50
@marie:marie.cologneMarie
In reply to @whentze:matrix.org
I thought it didn't, and that's why one has to prefetch
prefetch-npm-deps fetches the dependencies from a package-lock.json and produces the cache format npm uses so npm can do an offline install using the cache
15:57:55
@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

Show newer messages


Back to Room ListRoom Version: 6