about summary refs log tree commit diff
path: root/pkgs/development/libraries/netcdf-cxx4
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/netcdf-cxx4')
-rw-r--r--pkgs/development/libraries/netcdf-cxx4/default.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/development/libraries/netcdf-cxx4/default.nix b/pkgs/development/libraries/netcdf-cxx4/default.nix
new file mode 100644
index 0000000000000..9b2364e7090e1
--- /dev/null
+++ b/pkgs/development/libraries/netcdf-cxx4/default.nix
@@ -0,0 +1,19 @@
+{ stdenv, fetchurl, netcdf, hdf5, curl }:
+stdenv.mkDerivation rec {
+  name = "netcdf-cxx4-${version}";
+  version = "4.2.1";
+
+  src = fetchurl {
+    url = "https://github.com/Unidata/netcdf-cxx4/archive/v${version}.tar.gz";
+    sha256 = "1g0fsmz59dnjib4a7r899lm99j3z6yxsw10c0wlihclzr6znmmds";
+  };
+
+  buildInputs = [ netcdf hdf5 curl ];
+  doCheck = true;
+
+  meta = {
+    description = "C++ API to manipulate netcdf files";
+    homepage = "http://www.unidata.ucar.edu/software/netcdf/";
+    license = stdenv.lib.licenses.free;
+  };
+}