Skip to content
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

erlang: make configureFlags appending instead of overwriting #96668

Merged
merged 1 commit into from Sep 8, 2020

Conversation

NobbZ
Copy link
Contributor

@NobbZ NobbZ commented Aug 30, 2020

Motivation for this change

The erlang generic-builder accepts a lot of arguments that would
affect the configureFlags passed to mkDerivation. Though all these
arguments would be without any effect if additionally configureFlags
is passed and not the empty list.

This change should make it easier to "compose" arbitrary erlang overrides.

I am aware that this change is potentially a breaking change, especially about how erlang might be used by nix-users, but probably not within nixpkgs itself (I think the issue would have been seen earlier if it was used that way in nixpkgs itself). Therefore I suggest to not make this change available before 20.09.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Even though I ticked run of "nixpkgs-review", I'm not quite sure if it did what it was expected to do, as it told me "No diff detected, stopping review...".

I tested the binary files only for the top-level erlang attribute as well as for one specific override. I expect other variants to work the same, and possible compbinations are just to much…

The erlang `generic-builder` accepts a lot of arguments that would
affect the `configureFlags` passed to `mkDerivation`. Though all these
arguments would be without any effect if additionally `configureFlags`
is passed and not the empty list.

This change should make it easier to "compose" arbitrary erlang overrides.
@jonringer
Copy link
Contributor

cc erlang folks @tolbrino @cw789 @michalmuskala @madjar

@tolbrino
Copy link
Contributor

lgtm 👍

@worldofpeace worldofpeace merged commit f764549 into NixOS:master Sep 8, 2020
@NobbZ NobbZ deleted the erlang-config-flags branch July 23, 2021 10:56
@NobbZ NobbZ restored the erlang-config-flags branch November 22, 2021 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants