cdo: 1.9.10 -> 2.0.5 and add eccodes dependency for GRIB files (#167743)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
main
Matthias Riße 2 years ago committed by GitHub
parent 2210891a58
commit f0f5be951d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      pkgs/development/libraries/cdo/default.nix

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, curl, hdf5, netcdf
{ lib, stdenv, fetchurl, curl, hdf5, netcdf, eccodes
, # build, install and link to a CDI library [default=no]
enable_cdi_lib ? false
, # build a completely statically linked CDO binary
@ -9,22 +9,24 @@
stdenv.mkDerivation rec {
pname = "cdo";
version = "1.9.10";
version = "2.0.5";
# Dependencies
buildInputs = [ curl netcdf hdf5 ];
src = fetchurl {
url = "https://code.mpimet.mpg.de/attachments/download/24638/${pname}-${version}.tar.gz";
sha256 = "sha256-zDnIm7tIHXs5RaBsVqhJIEcjX0asNjxPDZgPzN3mZ34=";
url = "https://code.mpimet.mpg.de/attachments/download/26823/${pname}-${version}.tar.gz";
sha256 = "sha256-7e678cOxofDGQtrmvIx2JODFS6vkYQZNxcfaykpbDc4=";
};
# Configure phase
configureFlags = [
"--with-netcdf=${netcdf}" "--with-hdf5=${hdf5}"]
++ lib.optional (enable_cdi_lib) "--enable-cdi-lib"
++ lib.optional (enable_all_static) "--enable-all-static"
++ lib.optional (enable_cxx) "--enable-cxx";
"--with-netcdf=${netcdf}"
"--with-hdf5=${hdf5}"
"--with-eccodes=${eccodes}"
]
++ lib.optional enable_cdi_lib "--enable-cdi-lib"
++ lib.optional enable_all_static "--enable-all-static"
++ lib.optional enable_cxx "--enable-cxx";
meta = with lib; {
description = "Collection of command line Operators to manipulate and analyse Climate and NWP model Data";

Loading…
Cancel
Save