Merge pull request #73958 from markuskowa/upd-lapack

liblapack: 3.8.0 -> 3.9.0
This commit is contained in:
Dmitry Kalinkin 2019-11-24 20:06:04 -05:00 committed by GitHub
commit aa7efea848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
{ {
stdenv, stdenv,
fetchurl, fetchFromGitHub,
gfortran, gfortran,
cmake, cmake,
python2, python2,
@ -8,19 +8,22 @@
}: }:
let let
inherit (stdenv.lib) optional; inherit (stdenv.lib) optional;
version = "3.8.0"; version = "3.9.0";
in in
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "liblapack"; pname = "liblapack";
inherit version; inherit version;
src = fetchurl {
url = "http://www.netlib.org/lapack/lapack-${version}.tar.gz"; src = fetchFromGitHub {
sha256 = "1xmwi2mqmipvg950gb0rhgprcps8gy8sjm8ic9rgy2qjlv22rcny"; owner = "Reference-LAPACK";
repo = "lapack";
rev = "v${version}";
sha256 = "0sxnc97z67i7phdmcnq8f8lmxgw10wdwvr8ami0w3pb179cgrbpb";
}; };
buildInputs = [ gfortran cmake ]; buildInputs = [ gfortran ];
nativeBuildInputs = [ python2 ]; nativeBuildInputs = [ python2 cmake ];
cmakeFlags = [ cmakeFlags = [
"-DCMAKE_Fortran_FLAGS=-fPIC" "-DCMAKE_Fortran_FLAGS=-fPIC"