You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using dream2nix.modules.dream2nix.nodejs-package-lock-v3 I am unable to pass packages as nativeBuildInputs to transitive dependencies (specified in a package-lock.json) using the nodejs-granular-v3.overrides.${packageName}.nativeBuildInputs option. When I do so for a package, for example keytar, I get an error
'nodejs-granular-v3.deps.keytar."7.9.0".nativeBuildInputs' does not exist'.
Without this, I am unable to build a package that transitively depends on keytar, as it is looking for the Security/Security.h headers and is unable to find them.
Anyone know how I can pass the darwin.apple_sdk.frameworks.Security headers to a node module (keytar) being compiled with node-gyp, when using? I get ../src/keytar_mac.cc:1:10: fatal error: 'Security/Security.h' file not found even when I add config.deps.darwin.apple_sdk.frameworks.Foundation to nativeBuildInputs of the module being evaluated by dream2nix
Thanks for your reply. I just tried adding nodejs-granular-v3.overrides.keytar.nativeBuildInputs = [ config.deps.darwin.apple_sdk.frameworks.Security ]; to my default.nix and unfortunately I get nodejs-granular-v3.deps.keytar."7.9.0".nativeBuildInputs' does not exist. I don't think I've done a typo, as it has correctly picked up the version of keytar specified in the package-lock.json.
The text was updated successfully, but these errors were encountered:
G3zz
changed the title
Unable to provide nativeBuildInputs to transitive dependencies
Unable to provide nativeBuildInputs to nodejs transitive dependencies
May 2, 2024
When using
dream2nix.modules.dream2nix.nodejs-package-lock-v3
I am unable to pass packages asnativeBuildInputs
to transitive dependencies (specified in apackage-lock.json
) using thenodejs-granular-v3.overrides.${packageName}.nativeBuildInputs
option. When I do so for a package, for examplekeytar
, I get an error'nodejs-granular-v3.deps.keytar."7.9.0".nativeBuildInputs' does not exist'.
Without this, I am unable to build a package that transitively depends on
keytar
, as it is looking for theSecurity/Security.h
headers and is unable to find them.I am on
aarch64-darwin
, nix 2.18.1Here are the files to reproduce:
default.nix:
flake.lock:
flake.nix:
package-lock.json:
In this case, it has detected the correct
Anyone know how I can pass the darwin.apple_sdk.frameworks.Security headers to a node module (keytar) being compiled with node-gyp, when using? I get ../src/keytar_mac.cc:1:10: fatal error: 'Security/Security.h' file not found even when I add config.deps.darwin.apple_sdk.frameworks.Foundation to nativeBuildInputs of the module being evaluated by dream2nix
Thanks for your reply. I just tried adding nodejs-granular-v3.overrides.keytar.nativeBuildInputs = [ config.deps.darwin.apple_sdk.frameworks.Security ]; to my default.nix and unfortunately I get nodejs-granular-v3.deps.keytar."7.9.0".nativeBuildInputs' does not exist. I don't think I've done a typo, as it has correctly picked up the version of keytar specified in the package-lock.json.
The text was updated successfully, but these errors were encountered: