2007-10-29 11:52:04 +01:00
|
|
|
args : with args;
|
2008-11-04 22:24:10 +01:00
|
|
|
let localDefs = builderDefs.passthru.function {
|
2007-10-29 11:52:04 +01:00
|
|
|
src =
|
|
|
|
fetchurl {
|
|
|
|
url = ftp://ftp.fftw.org/pub/fftw/fftw-3.1.2.tar.gz;
|
|
|
|
sha256 = "1gr63hf5vvsg50b2xwqaxwpvs1y9g8l0sb91a38wpvr7zsbjxfg1";
|
|
|
|
};
|
|
|
|
buildInputs = [];
|
2008-10-14 15:59:56 +02:00
|
|
|
configureFlags = ["--enable-shared"]
|
|
|
|
++ (if args.singlePrecision then [ /*"--enable-single" */] else ["--enable-float"]);
|
|
|
|
# some distros seem to be shipping both versions within the same package?
|
|
|
|
# why does --enable-single still result in ..3f.so instead of ..3.so?
|
2008-08-19 07:54:09 +02:00
|
|
|
};
|
2008-01-18 13:36:56 +01:00
|
|
|
in with localDefs;
|
2007-10-29 11:52:04 +01:00
|
|
|
stdenv.mkDerivation {
|
2008-10-14 15:59:56 +02:00
|
|
|
name = "fftw-3.1.2" + ( if args.singlePrecision then "-single" else "-float" );
|
2007-10-29 11:52:04 +01:00
|
|
|
builder = writeScript "fftw-3.1.2-builder"
|
2008-01-18 13:36:56 +01:00
|
|
|
(textClosure localDefs [doConfigure doMakeInstall doForceShare]);
|
2007-10-29 11:52:04 +01:00
|
|
|
meta = {
|
|
|
|
description = "
|
|
|
|
Fastest Fourier Transform in the West library.
|
|
|
|
";
|
2008-03-02 19:49:31 +01:00
|
|
|
inherit src;
|
2007-10-29 11:52:04 +01:00
|
|
|
};
|
|
|
|
}
|