| 30 Jul 2023 |
Lily Foster | But I imagine that would really only work when there are no lifecycle scripts that need to run to build the package (e.g. to run typescript compiler or something) | 10:54:27 |
Lily Foster | (Still surprised it allows it at all though) | 10:54:40 |
gdamjan | Lily Foster: executive decision time. stdenv.mkDerivation https://gist.github.com/gdamjan/08901abe49baadf083034e93ed32ccbe#file-default-2-nix or try to hack around with mkYarnPackage and try to make https://gist.github.com/gdamjan/08901abe49baadf083034e93ed32ccbe#file-default-nix work ? | 12:23:33 |
Lily Foster | In reply to @gdamjan:spodeli.org Lily Foster: executive decision time. stdenv.mkDerivation https://gist.github.com/gdamjan/08901abe49baadf083034e93ed32ccbe#file-default-2-nix or try to hack around with mkYarnPackage and try to make https://gist.github.com/gdamjan/08901abe49baadf083034e93ed32ccbe#file-default-nix work ? Why do you have to set the yarn config twice here? https://gist.github.com/gdamjan/08901abe49baadf083034e93ed32ccbe#file-default-2-nix-L71 | 12:25:08 |
Lily Foster | Also if you can use fixup-yarn-lock from prefetch-yarn-deps rather than fixup_yarn_lock from yarn2nix https://github.com/NixOS/nixpkgs/issues/240174 | 12:26:06 |
gdamjan | I don't know, but the yarn --production pruning tried to download without that (and failed because of the --ofline) | 12:26:11 |
gdamjan | I'm guessing themktemp HOME was removed between the phases? | 12:27:01 |
gdamjan | * I'm guessing the mktemp HOME was removed between the phases? | 12:27:08 |
Lily Foster | In reply to @gdamjan:spodeli.org I'm guessing the mktemp HOME was removed between the phases? Oh yeah it's because of this https://gist.github.com/gdamjan/08901abe49baadf083034e93ed32ccbe#file-default-2-nix-L58 | 12:27:27 |
Lily Foster | Is that necessary? | 12:27:33 |
gdamjan | In reply to @lily:lily.flowers Is that necessary? I've seen it used in nixpkgs, but let's check | 12:28:04 |
gdamjan | but afaik HOME is where yarn config stores the config, and without it, nix sets HOME to a non-existent directory, doesn't it? | 12:29:25 |