!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

209 Members
59 Servers

Load older messages


SenderMessageTime
30 Jul 2023
@hexa:lossy.networkhexalet's hope we don't need to copy the lock file into the repo00:32:33
@gdamjan:spodeli.orggdamjanthe offlineCache?00:41:32
@gdamjan:spodeli.orggdamjanI might just remove it, no?00:41:40
@gdamjan:spodeli.orggdamjan hm, trying to run the nixosTests.matrix-appservice-irc, but it fails with Failed to parse 'config.schema.json': Expecting value: line 1 column 1 (char 0)
and there's also DeprecationWarning: The jsonschema CLI is deprecated and will be removed in a future version. Please use check-jsonschema instead, which can be installed from https://pypi.org/project/check-jsonschema/
00:47:03
@hexa:lossy.networkhexa
In reply to @gdamjan:spodeli.org
I might just remove it, no?
no idea about yarn, sorry
00:52:06
@gdamjan:spodeli.orggdamjanoh, my typo :facepalm:00:57:33
@lily:lily.flowersLily FosterNo you need package.json for yarn2nux01:09:18
@lily:lily.flowersLily Foster* No you need package.json for yarn2nix01:09:23
@lily:lily.flowersLily FosterBut the offlineCache avoids the need to vendor yarn.lock and yarn.nix01:09:36
@hexa:lossy.networkhexa gdamjan: fyi https://github.com/NixOS/nixpkgs/pull/246123 01:11:08
@lily:lily.flowersLily Foster(to clarify, it tries to pull the package name from IFD otherwise)01:11:11
@lily:lily.flowersLily FosterTbh you can probably get by without yarn2nix at all, though, if you are already having to override phases01:11:19
@lily:lily.flowersLily Foster There's a few packages that use yarn --offline with fetchYarnDeps and don't use mkYarnPackage at all 01:11:39
@lily:lily.flowersLily Foster * There's a few packages that use yarn --offline install with fetchYarnDeps and don't use mkYarnPackage at all 01:11:43
@gdamjan:spodeli.orggdamjan what was IFD again? 01:13:37
@lily:lily.flowersLily FosterImport-from-derivation01:13:55
@lily:lily.flowersLily Foster When you try to builtins.readFile or import from the result of a derivation (like a fetched FOD) 01:14:13
@hexa:lossy.networkhexawhen one derivation needs to wait for the result of another derivation01:14:14
@hexa:lossy.networkhexasomething that's explicitly disabled on hydra01:14:23
@hexa:lossy.networkhexathere are a few more functions that import under the hood https://nixos.wiki/wiki/Import_From_Derivation#Recognizing_IFD01:15:14
@hexa:lossy.networkhexait will work for you locally, and that's what makes it tricky 🙂01:17:36
@gdamjan:spodeli.orggdamjanheh01:17:44
@gdamjan:spodeli.orggdamjan ok. let me try again the stdenv.mkDerivation path then 01:19:57
@lily:lily.flowersLily Foster
In reply to @hexa:lossy.network
it will work for you locally, and that's what makes it tricky 🙂
I mean, it won't work for you locally anymore if you add --no-allow-import-from-derivation to the nix command (which is just what ofborg does iirc)
02:27:20
@gdamjan:spodeli.orggdamjan
In reply to @gdamjan:spodeli.org
ok. let me try again the stdenv.mkDerivation path then
https://gist.github.com/gdamjan/08901abe49baadf083034e93ed32ccbe#file-default-2-nix
I have no idea how kosher this is ^
03:09:48
@gdamjan:spodeli.orggdamjan(ignore that I use my fork, that was to prune some additional deps)03:10:17
@gdamjan:spodeli.orggdamjan but yarnLock = "${src}/yarn.lock"; would still be a problem, no?
so I need to take yarn.lock and add it to nixpkgs ?
03:11:17
@gdamjan:spodeli.orggdamjangoing to sleep now ... see ya tomorrow03:13:06
@gdamjan:spodeli.orggdamjanthat's this change https://github.com/matrix-org/matrix-appservice-irc/pull/175803:13:59
@lily:lily.flowersLily Foster
In reply to @gdamjan:spodeli.org
but yarnLock = "${src}/yarn.lock"; would still be a problem, no?
so I need to take yarn.lock and add it to nixpkgs ?
Not for fetchYarnDeps because it doesn't use the path at eval time (no import or read or anything), it's only used build time
03:15:17

Show newer messages


Back to Room ListRoom Version: 6