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
|
||||
, gfortran
|
||||
, perl
|
||||
, llvmPackages ? null
|
||||
, llvmPackages
|
||||
, precision ? "double"
|
||||
, enableAvx ? stdenv.hostPlatform.avxSupport
|
||||
, enableAvx2 ? stdenv.hostPlatform.avx2Support
|
||||
|
@ -11,24 +11,20 @@
|
|||
, enableFma ? stdenv.hostPlatform.fmaSupport
|
||||
, enableMpi ? false
|
||||
, mpi
|
||||
, withDoc ? stdenv.cc.isGNU
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
assert stdenv.cc.isClang -> llvmPackages != null;
|
||||
assert elem precision [ "single" "double" "long-double" "quad-precision" ];
|
||||
|
||||
let
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "fftw-${precision}";
|
||||
version = "3.3.10";
|
||||
withDoc = stdenv.cc.isGNU;
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "fftw-${precision}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
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"
|
||||
];
|
||||
sha256 = "sha256-VskyVJhSzdz6/as4ILAgDHdCZ1vpIXnlnmIVs0DiZGc=";
|
||||
|
|
Loading…
Reference in a new issue