diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-07-03 16:51:30 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2018-07-03 16:51:30 -0400 |
commit | f7138342cb5b6278fbb59ea4cd647c2c00e3c53d (patch) | |
tree | 8138628c69184e748815d55e68621347f0f2fc82 /pkgs/development | |
parent | ea08cf9e6c0d77c08dfc557b61270a9559f8eddc (diff) |
libiconv: use enableFeature for static/shared
This makes things more predictable w.r.t. what is actually being built.
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/libraries/libiconv/default.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/development/libraries/libiconv/default.nix b/pkgs/development/libraries/libiconv/default.nix index 0e900ca9db644..24dd4f2465c6a 100644 --- a/pkgs/development/libraries/libiconv/default.nix +++ b/pkgs/development/libraries/libiconv/default.nix @@ -29,9 +29,10 @@ stdenv.mkDerivation rec { sed -i -e '/preload/d' Makefile.in ''; - configureFlags = lib.optional stdenv.isFreeBSD "--with-pic" - ++ lib.optional enableStatic "--enable-static" - ++ lib.optional (!enableShared) "--disable-shared"; + configureFlags = [ + (lib.enableFeature enableStatic "static") + (lib.enableFeature enableShared "shared") + ] ++ lib.optional stdenv.isFreeBSD "--with-pic"; meta = { description = "An iconv(3) implementation"; |