-
Notifications
You must be signed in to change notification settings - Fork 70
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
add --extra-nixpkgs-config #315
Conversation
Is there anything to be done with nixpkgs-review/nixpkgs_review/review.py Lines 333 to 347 in 6ffaffa
Maybe it's easier to implement |
I'm not sure. There are a few things we can do
|
IIUC, we need either of the last two options, otherwise |
I will skip reviewing this feature but I think we should have some way of passing nixpkgs configuration into nixpkgs-review. Just merge if you come to a consensus @SuperSandro2000 @figsoda |
nixpkgs_review/nix/evalAttrs.nix
Outdated
pkgs = import <nixpkgs> ({ | ||
config = { | ||
checkMeta = true; | ||
allowUnfree = true; inherit allowAliases; |
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.
If extra-nixpkgs-config
contains config
as an attribute, we're going to loose allowUnfree
. We either need a recursive merge or we stick to --nixpkgs-arg[str]
instead
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.
Here's another bit, I think:
nixpkgs-review/nixpkgs_review/buildenv.py
Lines 38 to 43 in 6ffaffa
self.nixpkgs_config = NamedTemporaryFile() | |
self.nixpkgs_config.write( | |
str.encode( | |
f"""{{ | |
allowUnfree = true; | |
allowBroken = true; |
Here's a preview of the current status: https://gist.github.com/SomeoneSerge/745681c4d577fac2b2e71b6349cc2503 with this quick solution to At a glance, I think the list of packages looks good |
When this PR is merged I will make a new release. |
One issue I have currently is that nix-env doesn't do recursive updates. |
|
Is it expect behaviour that |
It is expected I believe: e704d6a |
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.
The current version works for me (example: NixOS/nixpkgs#218265 (comment)) and I'm happy with the UX. I find it confusing that for some PRs the tool doesn't show in advance which packages it's going to build, but I'm not even sure if it's related to this change. The rest is in Sandro's scope, I suppose:)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
bors r+ I messaged sandro privately. He is currently prioritizing on other things and is not against merging this |
Build succeeded:
|
Can I use this argument to cap resources with max-jobs and cores? By default nixpkgs-review tries to build with everything. |
You want to set those settings in your nix.conf. |
closes #314