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

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Matthias Riße
2022-08-04 00:33:49 +02:00
committed by GitHub
co-authored by Sandro
parent 2210891a58
commit f0f5be951d
+11 -9
View File
@@ -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";