-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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: support structuredAttrs in setup hooks #318614
treewide: support structuredAttrs in setup hooks #318614
Commits on Jul 30, 2024
-
stdenv: refactor appendToVar and prependToVar
No need to call declare -p twice. The case statement is easier to read than the multi-if.
Configuration menu - View commit details
-
Copy full SHA for cdb2f29 - Browse repository at this point
Copy the full SHA cdb2f29View commit details
Commits on Aug 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 929db7b - Browse repository at this point
Copy the full SHA 929db7bView commit details -
stdenv: make _accumFlagsArray independent of structuredAttrs
structuredAttrs was used here to make an assumption about the type of the named variables passed as arguments. This can be done better by looking at the actual types of those variables. This gives a bit more backwards compatibility as well: Once you turn to structuredAttrs, you should still be able to pass a bare string instead of a list and have it behave as a whitespace-separated string like before.
Configuration menu - View commit details
-
Copy full SHA for bfd97a6 - Browse repository at this point
Copy the full SHA bfd97a6View commit details -
stdenv: generalize _accumFlagsArray to concatTo
Passing "flagsArray" as the first argument allows using this function in a few more places.
Configuration menu - View commit details
-
Copy full SHA for 6bdfef9 - Browse repository at this point
Copy the full SHA 6bdfef9View commit details -
stdenv: refactor default flags without __structuredAttrs use
Instead of checking for __structuredAttrs everywhere, it's easier to just set the default value via parameter expansion and then hand the array construction off to "concatTo". Once more setup-hooks will be made structuredAttrs-aware, this pattern will reduce the use of this implementation detail even more.
Configuration menu - View commit details
-
Copy full SHA for 8cb51ec - Browse repository at this point
Copy the full SHA 8cb51ecView commit details -
stdenv: add concatStringsSep helper
This can be used to separate lists for example with commas, when creating argument strings. This works with both structuredAttrs disabled and enabled.
Configuration menu - View commit details
-
Copy full SHA for 471cbdd - Browse repository at this point
Copy the full SHA 471cbddView commit details
Commits on Aug 3, 2024
-
meson: support structuredAttrs in setup hook
Tested emilua with and without __structuredAttrs.
Configuration menu - View commit details
-
Copy full SHA for 55933d9 - Browse repository at this point
Copy the full SHA 55933d9View commit details -
meson: remove unused crossMesonFlags from setup hook
This was used in #NixOS#35666 to add the --cross-file argument, but NixOS#86080 moved that somewhere else - leaving crossMesonFlags unused.
Configuration menu - View commit details
-
Copy full SHA for 7c732de - Browse repository at this point
Copy the full SHA 7c732deView commit details -
ninja: support structuredAttrs in setup hook
Tested clasp-common-lisp with and without __structuredAttrs.
Configuration menu - View commit details
-
Copy full SHA for 7752cea - Browse repository at this point
Copy the full SHA 7752ceaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b45acf - Browse repository at this point
Copy the full SHA 4b45acfView commit details -
cmake: support structuredAttrs in setup hook
Tested litehtml with and without __structuredAttrs. Resolves NixOS#289037 Supersedes NixOS#299622 (at least parts)
Configuration menu - View commit details
-
Copy full SHA for 34a2b7a - Browse repository at this point
Copy the full SHA 34a2b7aView commit details -
setup-hooks/autoreconf: support structuredAttrs
Tested db with and without __structuredAttrs.
Configuration menu - View commit details
-
Copy full SHA for d7c2570 - Browse repository at this point
Copy the full SHA d7c2570View commit details
Commits on Aug 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 64eaa63 - Browse repository at this point
Copy the full SHA 64eaa63View commit details
Commits on Aug 11, 2024
-
stdenv: concatStringsSep: test sep="&"
The test fails without 64eaa63 ("stdenv: concatStringsSep: quote ${sep}") Co-authored-by: Ivan Trubach <[email protected]> Co-authored-by: Wolfgang Walther <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9876c2f - Browse repository at this point
Copy the full SHA 9876c2fView commit details