diff options
Diffstat (limited to 'pkgs/development/libraries/mpfr/default.nix')
-rw-r--r-- | pkgs/development/libraries/mpfr/default.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/libraries/mpfr/default.nix b/pkgs/development/libraries/mpfr/default.nix index 901752e3fe3..06cebf04189 100644 --- a/pkgs/development/libraries/mpfr/default.nix +++ b/pkgs/development/libraries/mpfr/default.nix @@ -10,7 +10,11 @@ stdenv.mkDerivation rec { outputs = [ "dev" "out" "doc" ]; - buildInputs = [ gmp ]; + # mpfr.h requires gmp.h + propagatedBuildInputs = [ gmp ]; + + CFLAGS = "-I${gmp}/include"; + LDFLAGS = if stdenv.isDarwin then "-L${gmp}/lib" else null; configureFlags = /* Work around a FreeBSD bug that otherwise leads to segfaults in the test suite: @@ -43,7 +47,7 @@ stdenv.mkDerivation rec { license = stdenv.lib.licenses.lgpl2Plus; - maintainers = [ stdenv.lib.maintainers.ludo ]; + maintainers = [ ]; platforms = stdenv.lib.platforms.all; }; } |