sundials: reorder attributes
Per https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/attribute-ordering.md
This commit is contained in:
parent
12c9f363f4
commit
442f1ec54d
@ -15,6 +15,24 @@ stdenv.mkDerivation rec {
|
|||||||
pname = "sundials";
|
pname = "sundials";
|
||||||
version = "5.6.1";
|
version = "5.6.1";
|
||||||
|
|
||||||
|
outputs = [ "out" "examples" ];
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://computation.llnl.gov/projects/${pname}/download/${pname}-${version}.tar.gz";
|
||||||
|
sha256 = "Frd5mex+fyFXqh0Eyh3kojccqBUOBW0klR0MWJZvKoM=";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fixing an upstream regression in treating cmake prefix directories:
|
||||||
|
# https://github.com/LLNL/sundials/pull/58
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/LLNL/sundials/commit/dd32ff9baa05618f36e44aadb420bbae4236ea1e.patch";
|
||||||
|
sha256 = "kToAuma+2iHFyL1v/l29F3+nug4AdK5cPG6IcXv2afc=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
python
|
python
|
||||||
]
|
]
|
||||||
@ -31,22 +49,6 @@ stdenv.mkDerivation rec {
|
|||||||
++ stdenv.lib.optionals (kluSupport) [
|
++ stdenv.lib.optionals (kluSupport) [
|
||||||
suitesparse
|
suitesparse
|
||||||
];
|
];
|
||||||
outputs = [ "out" "examples" ];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://computation.llnl.gov/projects/${pname}/download/${pname}-${version}.tar.gz";
|
|
||||||
sha256 = "Frd5mex+fyFXqh0Eyh3kojccqBUOBW0klR0MWJZvKoM=";
|
|
||||||
};
|
|
||||||
patches = [
|
|
||||||
# Fixing an upstream regression in treating cmake prefix directories:
|
|
||||||
# https://github.com/LLNL/sundials/pull/58
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/LLNL/sundials/commit/dd32ff9baa05618f36e44aadb420bbae4236ea1e.patch";
|
|
||||||
sha256 = "kToAuma+2iHFyL1v/l29F3+nug4AdK5cPG6IcXv2afc=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DEXAMPLES_INSTALL_PATH=${placeholder "examples"}/share/examples"
|
"-DEXAMPLES_INSTALL_PATH=${placeholder "examples"}/share/examples"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user