!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

208 Members
58 Servers

Load older messages


SenderMessageTime
31 Oct 2023
@lily:lily.flowersLily FosterYou gotta copy the package.json into nixpkgs10:39:46
@lily:lily.flowersLily Fosterit's dumb10:39:50
@emma:conduit.rory.gayEmma [it/its] ⚡️theres no way around that?10:40:01
@lily:lily.flowersLily Fosternot really without patching yarn2nix (which i started to do, but i guess i never finished and PR'd it)10:40:38
@emma:conduit.rory.gayEmma [it/its] ⚡️i guess you'd need to include yarn.lock too, no?10:40:42
@lily:lily.flowersLily Foster not if you use fetchYarnDeps 10:40:57
@emma:conduit.rory.gayEmma [it/its] ⚡️oh, i guess i dont need root level yarnLock then?10:41:16
@lily:lily.flowersLily Fosteryep was just typing that :)10:41:26
@emma:conduit.rory.gayEmma [it/its] ⚡️hm, cant i use fetchFile for the package.lock?10:41:46
@emma:conduit.rory.gayEmma [it/its] ⚡️to at least keep it out of nixpkgs that is10:42:04
@lily:lily.flowersLily FosterfetchFile?10:42:12
@emma:conduit.rory.gayEmma [it/its] ⚡️idk theres something to fetch a file from a url somewhere10:42:24
@lily:lily.flowersLily Fosterand no yarn2nix has a hard req on the package.json being available. you can package yarn stuff without it though in most situations (and it even avoids the yarn2nix bugs to do that....)10:42:59
@lily:lily.flowersLily Foster
In reply to @emma:conduit.rory.gay
idk theres something to fetch a file from a url somewhere
fetchurl?
10:43:05
@lily:lily.flowersLily Foster that's still a derivation and yarn2nix still builtins.readFile's it, which is IFD 10:43:45
@emma:conduit.rory.gayEmma [it/its] ⚡️ah10:44:23
@lily:lily.flowersLily Foster
In reply to @lily:lily.flowers
and no yarn2nix has a hard req on the package.json being available. you can package yarn stuff without it though in most situations (and it even avoids the yarn2nix bugs to do that....)
(if you want an example of a yarn package done using mkDerivation i can give you a link to prior art in nixpkgs)
10:44:25
@emma:conduit.rory.gayEmma [it/its] ⚡️well ideally i'd like to not ship package.json in nixpkgs10:45:06
@lily:lily.flowersLily Fosterhere's an example where yarn2nix had some bug and the package was switched to using mkDerivation: https://github.com/NixOS/nixpkgs/pull/248107/files10:47:32
@lily:lily.flowersLily Fosterif you would rather just dump yarn2nix/mkYarnPackage entirely10:47:47
@emma:conduit.rory.gayEmma [it/its] ⚡️oh, that doesnt even look too messy10:48:21
@lily:lily.flowersLily Foster (one day we'll come back to buildYarnPackage PR...) 10:48:51
@emma:conduit.rory.gayEmma [it/its] ⚡️maybe10:49:19
@lily:lily.flowersLily Foster(idk i really want someone to join the node team so i'm not doing this alone...........)10:50:35
@emma:conduit.rory.gayEmma [it/its] ⚡️im neither good at nix, nor knowledgeable at nodejs 😅10:51:28
@lily:lily.flowersLily Fosterunfortunate10:51:57
@lily:lily.flowersLily Foster one day i'll find someone to scam convince to join the team 10:52:18
* @raitobezarius:matrix.orgraitobezarius nods11:28:09
@janik0:matrix.org@janik0:matrix.org
In reply to @emma:conduit.rory.gay
im neither good at nix, nor knowledgeable at nodejs 😅
you don't need to be, you just need to be motivated enough :D but I get if you don't want to touch it, I won't touch node stuff with a 10 meter pole
11:42:06
@lily:lily.flowersLily Foster(yeah for real node.js is hell, don't subject yourself to that......)12:02:55

Show newer messages


Back to Room ListRoom Version: 6