fftw: support multiple src URLs

The fftw download page provides both an HTTP and FTP endpoint for downloading release tarballs:
http://fftw.org/download.html

Since some users may have difficulty fetching via FTP through corporate
firewalls, we should provide the option to get it over HTTP as well.
This commit is contained in:
Benjamin Hipple 2018-06-09 19:18:16 -04:00
parent e20abf829a
commit e2b44b3170

View File

@ -13,7 +13,10 @@ stdenv.mkDerivation rec {
name = "fftw-${precision}-${version}";
src = fetchurl {
url = "ftp://ftp.fftw.org/pub/fftw/fftw-${version}.tar.gz";
urls = [
"http://fftw.org/fftw-${version}.tar.gz"
"ftp://ftp.fftw.org/pub/fftw/fftw-${version}.tar.gz"
];
sha256 = "00z3k8fq561wq2khssqg0kallk0504dzlx989x3vvicjdqpjc4v1";
};