-
-
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
treewide: replace make/build/configure/patchFlags with nix lists #72085
Conversation
is that the right base branch? |
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec { | |||
|
|||
preBuild = "cd source"; | |||
|
|||
makeFlags = "DESTDIR= PREFIX=$(out)"; | |||
makeFlags = [ "DESTDIR=" "PREFIX=$(out)" ]; |
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.
Should we use placeholder?
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.
fine for now
This is debatable. It is intentional, to help the structured-attrs branch to move forward and not be hung up on packages breaking for these small issues. Leaving this in that branch (which is not intended to hit until after 20.03) will make for a lot of churn to keep it in sync with master, so cherry picking this forward earlier seems like a good idea. |
If I understand correctly it is a dependency for structured attributes. It is however a good change to get in anyway and is thus best merged as soon as possible. |
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 @globin Contribution from Nixcon Hackathon.
This commit wasn't even compiled, so will likely have syntax errors. It was made by running a crude sequence of sed steps, after discussing with @globin at Nixcon. These were the sed steps for example for one set of flags:
This gets quite a few constructs wrong, I've fixed the ones I've noticed wrong. It will get legitimate spaces inside the strings wrong, or if there is an if else on the same line.
I'll make a small python program that will work better, so other flags can be changed by @globin when he comes across more.