aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/sundials
diff options
context:
space:
mode:
authorDominic Steinitz <dominic@steinitz.org>2018-03-01 09:14:18 +0000
committerDominic Steinitz <dominic@steinitz.org>2018-03-10 12:48:26 +0000
commit2c71652550703cdab5244b55d1e82dc0c163df98 (patch)
tree58cd06f366be4c4c4966d47300c4f43a382428f3 /pkgs/development/libraries/sundials
parent183c3603fa7531afac66a0e22a9162c56c813623 (diff)
parent1cb726b937463900a6aafa46c46ee7f3aaf8fb6e (diff)
sundials: init at 3.1.0
Diffstat (limited to 'pkgs/development/libraries/sundials')
-rw-r--r--pkgs/development/libraries/sundials/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/libraries/sundials/default.nix b/pkgs/development/libraries/sundials/default.nix
new file mode 100644
index 000000000000..f06618e37881
--- /dev/null
+++ b/pkgs/development/libraries/sundials/default.nix
@@ -0,0 +1,28 @@
+{ cmake, fetchurl, python, stdenv }:
+
+stdenv.mkDerivation rec {
+
+ pname = "sundials";
+ version = "3.1.0";
+ name = "${pname}-${version}";
+
+ src = fetchurl {
+ url = "https://computation.llnl.gov/projects/${pname}/download/${pname}-${version}.tar.gz";
+ sha256 = "0fnlrpj6qjamxahd70r4vsgv85kxbgh93gxqk5xzf9ln6a7jzm8q";
+ };
+
+ preConfigure = ''
+ export cmakeFlags="-DCMAKE_INSTALL_PREFIX=$out -DEXAMPLES_INSTALL_PATH=$out/share/examples $cmakeFlags"
+ '';
+
+ buildInputs = [ cmake python ];
+
+ meta = with stdenv.lib; {
+ description = "Suite of nonlinear differential/algebraic equation solvers";
+ homepage = https://computation.llnl.gov/casc/sundials/main.html;
+ platforms = platforms.all;
+ maintainers = [ idontgetoutmuch ];
+ licencse = { url = https://computation.llnl.gov/projects/sundials/license; };
+ };
+
+}