-
Notifications
You must be signed in to change notification settings - Fork 84
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
Define nixpkgs_unix_configure #95
Conversation
Can I insist that you move the descriptions into the commit messages? :) |
👍 Done |
See tweag/rules_sh#1. |
This uses `rules_sh`. However, users of `rules_nixpkgs` will only need to depend on `rules_sh` if they use this macro. Otherwise, `rules_nixpkgs` does not depend on `rules_sh`.
This adds a dependency on `rules_sh` for the test-suite.
I've updated this PR to use the |
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 think nixpkgs_sh_posix_configure
would be clearer as the name of the repository rule, so that it lines up with sh_posix_configure
(which has to be called too). But I can live the current name.
If Nixpkgs ever gets ported to windows, we could in principle have nixpkgs_sh_cmd_configure
in the future.
Sounds good, I've renamed everything accordingly. |
Adds
rules_sh
support withnixpkgs_unix_configure
, a macro to generate a Unix toolchain with commands provided by Nix.rules_sh
uses theconfigure
attribute torepository_rule
which was only introduced in Bazel 0.29.nixpkgs
constraintThis is intended to move the
nixpkgs
platform constraint defined inrules_haskell
intorules_nixpkgs
so that it can be shared. It is used bynixpkgs_unix_configure
in theexec_compatible_with
attribute of the generated toolchain.nixpkgs_unix_configure
This uses
rules_sh
. However, users ofrules_nixpkgs
will only need to depend onrules_sh
if they use this macro. Otherwise,rules_nixpkgs
does not depend onrules_sh
.nixpkgs_unix_configure
This adds a dependency on
rules_sh
for the test-suite.