sundials: 5.7.0 -> 6.2.0
This commit is contained in:
parent
00b0dfdb23
commit
354abfaaa2
|
@ -12,16 +12,19 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "sundials";
|
pname = "sundials";
|
||||||
version = "5.7.0";
|
version = "6.2.0";
|
||||||
|
|
||||||
outputs = [ "out" "examples" ];
|
outputs = [ "out" "examples" ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/LLNL/sundials/releases/download/v${version}/sundials-${version}.tar.gz";
|
url = "https://github.com/LLNL/sundials/releases/download/v${version}/sundials-${version}.tar.gz";
|
||||||
hash = "sha256-SNp7qoFS3bIq7RsC2C0du0+/6iKs9nY0ARqgMDoQCkM=";
|
hash = "sha256-GV1Vk3cvxIP2Pwh5TXnkurMMLsWObOSw+2vMDgxI8x0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake gfortran ];
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
gfortran
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
python
|
python
|
||||||
|
@ -32,9 +35,8 @@ stdenv.mkDerivation rec {
|
||||||
blas
|
blas
|
||||||
lapack
|
lapack
|
||||||
])
|
])
|
||||||
# KLU support is based on Suitesparse.
|
# KLU support is based on Suitesparse. It is tested upstream according to the
|
||||||
# It is tested upstream according to the section 1.1.4 of
|
# section 1.1.4.2 of INSTALL_GUIDE.pdf found in the source tarball.
|
||||||
# [INSTALL_GUIDE.pdf](https://raw.githubusercontent.com/LLNL/sundials/master/INSTALL_GUIDE.pdf)
|
|
||||||
++ lib.optionals (kluSupport) [
|
++ lib.optionals (kluSupport) [
|
||||||
suitesparse
|
suitesparse
|
||||||
];
|
];
|
||||||
|
@ -64,11 +66,13 @@ stdenv.mkDerivation rec {
|
||||||
#
|
#
|
||||||
# build error:
|
# build error:
|
||||||
#
|
#
|
||||||
# /private/tmp/nix-build-sundials-5.7.0.drv-0/ccD2dUtR.s:21:15: error: index must be an integer in range [-256, 255].
|
# /private/tmp/nix-build-sundials-6.2.0.drv-0/ccD2dUtR.s:21:15: error: index must be an integer in range [-256, 255].
|
||||||
# ldr x0, [x0, ___stack_chk_guard];momd
|
# ldr x0, [x0, ___stack_chk_guard];momd
|
||||||
# ^
|
# ^
|
||||||
# /private/tmp/nix-build-sundials-5.7.0.drv-0/ccD2dUtR.s:46:15: error: index must be an integer in range [-256, 255].
|
# /private/tmp/nix-build-sundials-6.2.0.drv-0/ccD2dUtR.s:46:15: error: index must be an integer in range [-256, 255].
|
||||||
# ldr x0, [x0, ___stack_chk_guard];momd
|
# ldr x0, [x0, ___stack_chk_guard];momd
|
||||||
|
#
|
||||||
|
# See also a proposed solution: https://github.com/NixOS/nixpkgs/pull/151983
|
||||||
|
|
||||||
hardeningDisable = lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "stackprotector" ];
|
hardeningDisable = lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "stackprotector" ];
|
||||||
|
|
||||||
|
@ -77,7 +81,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Suite of nonlinear differential/algebraic equation solvers";
|
description = "Suite of nonlinear differential/algebraic equation solvers";
|
||||||
homepage = "https://computation.llnl.gov/projects/sundials";
|
homepage = "https://computing.llnl.gov/projects/sundials";
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ idontgetoutmuch ];
|
maintainers = with maintainers; [ idontgetoutmuch ];
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
|
|
Loading…
Reference in a new issue