-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
nodePackages.postcss-cli: fix execution of binary #130027
Conversation
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.
LGTM + nitpick.
@GrahamcOfBorg build nodePackages.postcss-cli Perhaps a passthru.tests would be nice. |
Without this change, executing the postcss binary results in the following error: Error: Cannot find module 'postcss'
Result of 1 package skipped due to time constraints:
18 packages built successfully:
Result of 1 package skipped due to time constraints:
41 packages built successfully:
36 suggestions:
|
Merging this before it has a merge conflict. We can add the passthru tests later. |
How can I add such a test? I'm having trouble finding a good example in Nixpkgs. I don't think any Node packages have any tests. |
The manual has a section. It's somewhat of a new thing to write this kind of test. Tests in |
I saw that section. I could probably successfully write a test for a "normal" package. passthru.tests = {
simple-execution = callPackage ./tests.nix { };
}; to the override but where would I put |
You could definitely add the |
Thank you for your suggestion. I created #130204 to add a basic test. |
Motivation for this change
Without this change, executing the postcss binary results in the following error:
Error: Cannot find module 'postcss'
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)