-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nodesPackages.insect: init at 5.4.0 #70652
Conversation
I managed to make it work imperatively so that's helpful for now. Even though I added purescript as a buildInput (with #67875 so that it matches the requested version) it doesn't seem to detect
Now if I run nix-build with --option sandbox false, I get another error
|
@justinwoo I wonder if you would know why npm install doesn't pick up the purescript interpreter purs in the build environment and still try to fetch it ? any workaround ? |
I'd love to see insect be packaged but I don't understand anything about bower or how to make this work. |
I noticed there's a |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/help-packaging-a-node-package-insect-that-uses-bower/5602/1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With insect v5.4.0 we can now get this to work
insect = nodePackages.insect.override { | ||
buildInputs = [ nodePackages.pulp nodePackages.bower pkgs.purescript ]; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
insect = nodePackages.insect.override { | |
buildInputs = [ nodePackages.pulp nodePackages.bower pkgs.purescript ]; | |
}; | |
insect = nodePackages.insect.override (drv: { | |
nativeBuildInputs = drv.nativeBuildInputs or [] ++ [ pkgs.psc-package pkgs.purescript nodePackages.pulp ]; | |
}); |
@@ -55,6 +55,7 @@ | |||
, "hueadm" | |||
, "imapnotify" | |||
, "indium" | |||
, "insect" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update this to v5.4.0, which gets rid of the bower
dependency
@@ -2,7 +2,7 @@ | |||
|
|||
{pkgs ? import <nixpkgs> { | |||
inherit system; | |||
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-13_x"}: | |||
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-8_x"}: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be fixed again.
@@ -13,13 +13,13 @@ let | |||
sha512 = "nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q=="; | |||
}; | |||
}; | |||
"ajv-6.10.2" = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably don't need to commit changes to the v12 or v13 package sets when you're just trying to update the v10 one.
thanks for the help. The binary seems to work. |
a calculator that understands units (online demo at https://insect.sh/)
@@ -35,6 +35,10 @@ nodePackages // { | |||
name = "bitwarden-cli-${drv.version}"; | |||
}); | |||
|
|||
insect = nodePackages.insect.override { | |||
nativeBuildInputs = [ pkgs.psc-package pkgs.purescript nodePackages.pulp ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if node2nix sets up any default nativeBuildInputs
but just in case this really should be
insect = nodePackages.insect.override (drv: {
nativeBuildInputs = drv.nativeBuildInputs or [] ++ [ pkgs.psc-package pkgs.purescript nodePackages.pulp ];
});
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, but we don't want to step on its toes if buildNodePackage
is ever updated in the future to start using nativeBuildInputs
.
Since this PR seems to have stalled out I submitted a new one as #81070 |
a calculator that understands units (online demo at https://insect.sh/).
That's the first node package I am trying to package but I am kinda lost:
install fails with :
After grepping a bit, I found that insect's package.json contains
I tried to remove these
scripts
entries but then it would fail at runtime withshould I package this with bower2nix instead ? or the package is broken for nix ? I precise I have no interest watsoever in the webapp, I just want to use the terminal component.
CC @svanderburg
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @