!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

209 Members
59 Servers

Load older messages


SenderMessageTime
25 Oct 2023
@ThorHop:matrix.org@ThorHop:matrix.org

Package.json:

{
  "name": "innleder",
  "type": "module",
  "version": "0.0.1",
  "scripts": {
    "dev": "astro dev",
    "start": "astro dev",
    "build": "astro build",
    "preview": "astro preview",
    "astro": "astro"
  },
  "dependencies": {
    "@astrojs/tailwind": "^5.0.2",
    "astro": "^3.2.4",
    "tailwindcss": "^3.3.3"
  }
}
14:04:26
@ThorHop:matrix.org@ThorHop:matrix.org That's a lot of cruft -.-; 14:05:14
@ThorHop:matrix.org@ThorHop:matrix.orgWondering if there's a smarter way to package static nodejs files for NixOS than pulling in the entire nodejs build stack, but the concept of having both system packaging and nodejs packaging tested in the same process does appeal to me.14:05:44
@ThorHop:matrix.org@ThorHop:matrix.orgI mean it is kinda redonculous since I only want to distribute the static files as a package so I can refer to a store path in nix configs.14:07:08
@lily:lily.flowersLily Foster
In reply to @ThorHop:matrix.org

Package.json:

{
  "name": "innleder",
  "type": "module",
  "version": "0.0.1",
  "scripts": {
    "dev": "astro dev",
    "start": "astro dev",
    "build": "astro build",
    "preview": "astro preview",
    "astro": "astro"
  },
  "dependencies": {
    "@astrojs/tailwind": "^5.0.2",
    "astro": "^3.2.4",
    "tailwindcss": "^3.3.3"
  }
}
Lockfile too?
14:08:58
@lily:lily.flowersLily Fosteror if you just want to dm a tarball so i can build that works. whatever is easiest for you14:09:22
@lily:lily.flowersLily Foster also one day we'll make it so you don't need npmDepsHash for same-repo derivations... it's on the list and will function similarly to importCargoLock from the rust tooling 14:10:02
@ThorHop:matrix.org@ThorHop:matrix.orgyey ^^14:10:23
27 Oct 2023
@federicodschonborn:matrix.orgFederico Damián Schonborn changed their profile picture.01:24:02
@emma:conduit.rory.gayEmma [it/its] ⚡️ joined the room.21:58:15
31 Oct 2023
@emma:conduit.rory.gayEmma [it/its] ⚡️question, how does one set up a reference to a package lock without using import-from-derivation (which isnt allowed in nixpkgs)?10:29:06
@lily:lily.flowersLily Foster
In reply to @emma:conduit.rory.gay
question, how does one set up a reference to a package lock without using import-from-derivation (which isnt allowed in nixpkgs)?
what kind of reference?
10:36:09
@emma:conduit.rory.gayEmma [it/its] ⚡️ https://github.com/NixOS/nixpkgs/pull/222939/files#diff-cc2f60d50c60395c8a53b2140e8e18eaadce9e455dc5f9ed0ae09a38fba24a95R31-R37 10:39:01
@lily:lily.flowersLily Fosteroh this is mkYarnPackage10:39:37
@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

Show newer messages


Back to Room ListRoom Version: 6