fftw: convert to pname+version, use https for fetching, expose withDoc, remove ? null from inputs

main
Sandro Jäckel 3 years ago
parent 30875be332
commit e4a63a3a44
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
  1. 14
      pkgs/development/libraries/fftw/default.nix

@ -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…
Cancel
Save