nixpkgs/pkgs/stdenv
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
..
cross darwin cross: include CoreFoundation in stdenv 2021-05-17 00:27:01 +09:00
custom
cygwin
darwin Merge pull request #121055 from toonn/bootstrap-tools-bump 2021-06-09 08:23:20 +02:00
freebsd Make the bootsrap respect the contentAddressedByDefault setting 2021-04-28 10:25:49 +02:00
generic stdenv: remove lib 2021-06-03 19:50:15 +07:00
linux glibc: Use pname and version 2021-05-10 20:56:33 +00:00
native stdenv/native: fix bintools import 2021-06-07 11:26:15 +00:00
nix stdenv/{native,nix}: add lib to cc-wrapper args 2021-04-21 11:56:55 -04:00
adapters.nix stdenv: introduce dontAddStaticConfigureFlags 2021-06-11 14:16:05 -07:00
booter.nix
common-path.nix
default.nix stdenv/darwin: Apple Silicon support 2021-05-17 00:27:02 +09:00