From e125997df65f6c6015fd1ef1adc151a09b34c326 Mon Sep 17 00:00:00 2001 From: taku0 Date: Wed, 15 Oct 2014 18:50:21 +0900 Subject: [PATCH] netcdf: enabled HDF5, DAP, UDUNITS, and shared library --- pkgs/development/libraries/netcdf/default.nix | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/netcdf/default.nix b/pkgs/development/libraries/netcdf/default.nix index b67dcafb0f93..2512c17ae924 100644 --- a/pkgs/development/libraries/netcdf/default.nix +++ b/pkgs/development/libraries/netcdf/default.nix @@ -1,4 +1,7 @@ -{ stdenv, fetchurl, zlib, hdf5 }: +{ stdenv, fetchurl, + zlib, hdf5, + curl # for DAP +}: stdenv.mkDerivation rec { name = "netcdf-4.3.2"; @@ -6,5 +9,15 @@ stdenv.mkDerivation rec { url = "http://www.unidata.ucar.edu/downloads/netcdf/ftp/${name}.tar.gz"; sha256 = "57086b4383ce9232f05aad70761c2a6034b1a0c040260577d369b3bbfe6d248e"; }; - buildInputs = [zlib hdf5]; + + buildInputs = [ + zlib hdf5 curl + ]; + + configureFlags = [ + "--enable-netcdf-4" + "--enable-dap" + "--with-udunits" + "--enable-shared" + ]; }