!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

206 Members
59 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
21 May 2023
@lily:lily.flowersLily Foster Apparently buildGoModule also doesn't propagate unpackPhase or its hooks to the fetcher despite propagating src, which seems sus... 21:48:24
@lily:lily.flowersLily Foster It looks like the evcc derivation has the exact same issue and fixes it via buildGoModule's overrideModAttrs to set a slimmer nativeBuildInputs 21:56:58
@lily:lily.flowersLily Foster

Yeah, adding this to the derivation fixes building .go-modules and fixes the update script hexa:

  overrideModAttrs = oldAttrs: {
    nativeBuildInputs = lib.filter (drv: drv != npmHooks.npmConfigHook) oldAttrs.nativeBuildInputs;
    preBuild = null;
  };
22:03:18
@hexa:lossy.networkhexa
In reply to @lily:lily.flowers
There's no comment in the buildGoModule code about why it propagates nativeBuildInputs to the fetcher -- do you know why it would be doing that?
no idea
22:03:41
@hexa:lossy.networkhexa
In reply to @lily:lily.flowers
It looks like the evcc derivation has the exact same issue and fixes it via buildGoModule's overrideModAttrs to set a slimmer nativeBuildInputs
oh, right 😲
22:04:10
@lily:lily.flowersLily Foster
In reply to @hexa:lossy.network
https://github.com/NixOS/nixpkgs/pull/230991#issuecomment-1552133508
I just realized that was before winter fixed the PR to actually work (which is why it ended up with a pushd/popd)
22:05:11
@lily:lily.flowersLily FosterSo yeah the npmRoot PR needs to a rebase and then I'll merge and deal with further changes in follow-ups, to unblock other stuff22:06:33
@hexa:lossy.networkhexajust the upper pushd hunk needs a massage22:11:08
@lily:lily.flowersLily FosterYep, I've already done it locally. Was gonna get permission from winter before just pushing to the branch myself though22:11:34
22 May 2023
@raitobezarius:matrix.orgraitobezariusis there a way with buildNpmPackage to just "install" the node_modules and be done?11:45:23
@raitobezarius:matrix.orgraitobezariusis dontNpmInstall the option I am looking for? I tried it and I'm not sure I am holding it correctly11:45:40
@lily:lily.flowersLily FosterIs the default install hook over-copying or failing or something?11:48:19
@raitobezarius:matrix.orgraitobezarius
> Executing npmInstallHook
       > npm ERR! Invalid package, must have name and version
11:58:22

Show newer messages


Back to Room ListRoom Version: 6