fftw: convert to pname+version, use https for fetching, expose withDoc, remove ? null from inputs
This commit is contained in:
parent
30875be332
commit
e4a63a3a44
|
@ -3,7 +3,7 @@
|
||||||
, lib
|
, lib
|
||||||
, gfortran
|
, gfortran
|
||||||
, perl
|
, perl
|
||||||
, llvmPackages ? null
|
, llvmPackages
|
||||||
, precision ? "double"
|
, precision ? "double"
|
||||||
, enableAvx ? stdenv.hostPlatform.avxSupport
|
, enableAvx ? stdenv.hostPlatform.avxSupport
|
||||||
, enableAvx2 ? stdenv.hostPlatform.avx2Support
|
, enableAvx2 ? stdenv.hostPlatform.avx2Support
|
||||||
|
@ -11,24 +11,20 @@
|
||||||
, enableFma ? stdenv.hostPlatform.fmaSupport
|
, enableFma ? stdenv.hostPlatform.fmaSupport
|
||||||
, enableMpi ? false
|
, enableMpi ? false
|
||||||
, mpi
|
, mpi
|
||||||
|
, withDoc ? stdenv.cc.isGNU
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
assert stdenv.cc.isClang -> llvmPackages != null;
|
|
||||||
assert elem precision [ "single" "double" "long-double" "quad-precision" ];
|
assert elem precision [ "single" "double" "long-double" "quad-precision" ];
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "fftw-${precision}";
|
||||||
version = "3.3.10";
|
version = "3.3.10";
|
||||||
withDoc = stdenv.cc.isGNU;
|
|
||||||
in
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "fftw-${precision}-${version}";
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
urls = [
|
urls = [
|
||||||
"http://fftw.org/fftw-${version}.tar.gz"
|
"https://fftw.org/fftw-${version}.tar.gz"
|
||||||
"ftp://ftp.fftw.org/pub/fftw/fftw-${version}.tar.gz"
|
"ftp://ftp.fftw.org/pub/fftw/fftw-${version}.tar.gz"
|
||||||
];
|
];
|
||||||
sha256 = "sha256-VskyVJhSzdz6/as4ILAgDHdCZ1vpIXnlnmIVs0DiZGc=";
|
sha256 = "sha256-VskyVJhSzdz6/as4ILAgDHdCZ1vpIXnlnmIVs0DiZGc=";
|
||||||
|
|
Loading…
Reference in a new issue