diff options
author | Spencer Whitt <sw@swhitt.me> | 2015-03-27 01:03:11 -0400 |
---|---|---|
committer | Spencer Whitt <sw@swhitt.me> | 2015-03-27 21:15:15 -0400 |
commit | 4ca6bdfa52bb2787d5df6d549ef96e37b442a190 (patch) | |
tree | 9caf978a2f1d027034f64e830c9de86a9d6aed34 /pkgs/development/libraries/fftw | |
parent | d201dfc94cc5889580b4af5ad1c8b5baf82abe60 (diff) | |
download | nixpkgs-4ca6bdfa52bb2787d5df6d549ef96e37b442a190.tar nixpkgs-4ca6bdfa52bb2787d5df6d549ef96e37b442a190.tar.gz nixpkgs-4ca6bdfa52bb2787d5df6d549ef96e37b442a190.tar.bz2 nixpkgs-4ca6bdfa52bb2787d5df6d549ef96e37b442a190.tar.lz nixpkgs-4ca6bdfa52bb2787d5df6d549ef96e37b442a190.tar.xz nixpkgs-4ca6bdfa52bb2787d5df6d549ef96e37b442a190.tar.zst nixpkgs-4ca6bdfa52bb2787d5df6d549ef96e37b442a190.zip |
fftw: Fix Darwin build
Diffstat (limited to 'pkgs/development/libraries/fftw')
-rw-r--r-- | pkgs/development/libraries/fftw/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/development/libraries/fftw/default.nix b/pkgs/development/libraries/fftw/default.nix index 83735376b98..104b7229bb1 100644 --- a/pkgs/development/libraries/fftw/default.nix +++ b/pkgs/development/libraries/fftw/default.nix @@ -16,16 +16,20 @@ stdenv.mkDerivation rec { configureFlags = [ "--enable-shared" "--disable-static" - "--enable-threads" "--enable-openmp" # very small wrappers + "--enable-threads" ] ++ optional (precision != "double") "--enable-${precision}" # all x86_64 have sse2 - ++ optional stdenv.isx86_64 "--enable-sse2"; + ++ optional stdenv.isx86_64 "--enable-sse2" + ++ optional (stdenv.cc.cc.isGNU or false) "--enable-openmp"; enableParallelBuilding = true; - meta = { + meta = with stdenv.lib; { description = "Fastest Fourier Transform in the West library"; homepage = http://www.fftw.org/; + license = licenses.gpl2Plus; + maintainers = [ maintainers.spwhitt ]; + platforms = platforms.unix; }; } |