nixpkgs/pkgs
Alyssa Ross b0b5ef7286 stdenv: introduce dontAddStaticConfigureFlags
With removeUnknownConfigureFlags, it's impossible to express a package
that needs --enable-static, but will not accept --disable-shared,
without overriding the result of removeUnknownConfigureFlags _again_
in pkgs/top-level/static.nix.

It would be much better (and more in line with the rest of Nixpkgs) if
we encoded changes needed for static builds in package definitions
themselves, rather than in an ever-expanding list in static.nix.  This
is especially true when doing it in static.nix is going to require
multiple overrides to express what could be expressed with stdenv
options.

So as a step in that direction, and to fix the problem described
above, here I replace removeUnknownConfigureFlags with a new stdenv
option, dontAddStaticConfigureFlags.  With this mechanism, a package
that needs one but not both of the flags just needs to set
dontAddStaticConfigureFlags and then set up configureFlags manually
based on stdenv.hostPlatform.isStatic.
2021-06-11 14:16:05 -07:00
..
applications Merge staging-next into staging 2021-06-11 18:05:09 +00:00
build-support Merge staging-next into staging 2021-06-11 12:04:41 +00:00
common-updater
data Merge remote-tracking branch 'nixpkgs/staging-next' into staging 2021-06-11 02:05:00 +00:00
desktops gnomeExtensions.night-theme-switcher: 40 -> 50 (#125725) 2021-06-10 18:42:08 +02:00
development stdenv: introduce dontAddStaticConfigureFlags 2021-06-11 14:16:05 -07:00
games Merge remote-tracking branch 'nixpkgs/staging-next' into staging 2021-06-11 02:05:00 +00:00
misc Merge pull request #125379 from deviant/bump-vsls 2021-06-11 10:42:59 +02:00
os-specific Merge staging-next into staging 2021-06-11 18:05:09 +00:00
pkgs-lib
servers Merge staging-next into staging 2021-06-11 18:05:09 +00:00
shells zsh-autosuggestions: 0.6.4 -> 0.7.0 2021-06-11 15:33:11 +02:00
stdenv stdenv: introduce dontAddStaticConfigureFlags 2021-06-11 14:16:05 -07:00
test Merge staging-next into staging 2021-06-10 00:06:44 +00:00
tools Merge staging-next into staging 2021-06-11 18:05:09 +00:00
top-level stdenv: introduce dontAddStaticConfigureFlags 2021-06-11 14:16:05 -07:00