!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

209 Members
59 Servers

Load older messages


SenderMessageTime
25 Mar 2023
@ambroisie:belanyi.fr@ambroisie:belanyi.frFor now I just need to see if it works for my purposes13:35:41
@ambroisie:belanyi.fr@ambroisie:belanyi.fr What's the correct way to expose the executable when using buildNpmPackage? 13:37:56
@ambroisie:belanyi.fr@ambroisie:belanyi.fr nix build .#pnpm-lock-export gives result/bin/@cvent/pnpm-lock-export 13:38:38
@lily:lily.flowersLily FosterWait really 💀13:57:13
@lily:lily.flowersLily FosterThat might be fixed by one of the pending PRs. I'll check later13:57:24
@lily:lily.flowersLily FosterI really need to get those cleaned up and merged13:57:36
@ambroisie:belanyi.fr@ambroisie:belanyi.fr I think it's because the name field in package.json is @cvent/pnpm-lock-export 13:59:06
@ambroisie:belanyi.fr@ambroisie:belanyi.fr Yup, subsituteInPlace to remove the @cvent in name fixes it 13:59:36
@ambroisie:belanyi.fr@ambroisie:belanyi.frWhy did woodpecker decide to migrate from yarn anyway14:40:25
@ambroisie:belanyi.fr@ambroisie:belanyi.fr Mmh I'm thinking my issue might be a tooling issue rather than a package fetch problem
When trying to use both mkYarnPackage and buildNpmPackage I get the same issue about failing to find esbuild 🤔
19:32:41
@lily:lily.flowersLily FosterOh.. esbuild... add it to nativeBuildInputs I guess?19:45:46
@ambroisie:belanyi.fr@ambroisie:belanyi.fr It's not about trying to execute esbuild, it's earlier 20:02:44
@ambroisie:belanyi.fr@ambroisie:belanyi.fr I think I'll need to patch the package file to remove the need for esbuild 20:03:15
@lily:lily.flowersLily FosterAh it's trying to download it then. I think there may be a supet secret env var to prevent that but I forget20:04:14
@ambroisie:belanyi.fr@ambroisie:belanyi.fr Mmh it's needed by vite, so I'm not sure how to remove it from the package set 20:05:17
@lily:lily.flowersLily Foster Maybe try setting ESBUILD_BINARY_PATH = lib.getExe buildPlatform.esbuild; to the derivation? Not sure that'll work though 20:23:16
@ambroisie:belanyi.fr@ambroisie:belanyi.frOoh, seems to have built! 20:43:47
@ambroisie:belanyi.fr@ambroisie:belanyi.frThanks for the tip 20:43:52
@lily:lily.flowersLily FosterOh good! (Honestly I'm a tad surprised that worked...)20:44:52
@raitobezarius:matrix.orgraitobezarius#nodejsmoments20:45:54
@ambroisie:belanyi.fr@ambroisie:belanyi.frLet's see if I broke everything now 20:52:34
* @ambroisie:belanyi.fr@ambroisie:belanyi.fr launches nixos-rebuild 20:52:46
@ambroisie:belanyi.fr@ambroisie:belanyi.frSeems to be working 🎉21:06:22
26 Mar 2023
@rbutani:matrix.orgrbutani joined the room.00:34:24
@robert:funklause.dedotlambda
In reply to @lily:lily.flowers
Maybe try setting ESBUILD_BINARY_PATH = lib.getExe buildPlatform.esbuild; to the derivation? Not sure that'll work though
Note that the version needs to match up with the one in package-lock.json. See e.g. the expression for deltachat-desktop.
16:34:09
@robert:funklause.dedotlambda Ambroisie: ^ 16:34:30
@ambroisie:belanyi.fr@ambroisie:belanyi.frArf 17:19:43
@ambroisie:belanyi.fr@ambroisie:belanyi.frSo it happens to work for now, but needs pinning to avoid problems when it invariably gets bumped 17:20:14
29 Mar 2023
@drupol:matrix.orgPol changed their profile picture.08:34:04
2 Apr 2023
@aktaboot:tchncs.deaktaboot left the room.17:12:57

Show newer messages


Back to Room ListRoom Version: 6