From bf491f87940b8607063b508a642791233649f894 Mon Sep 17 00:00:00 2001 From: Laure Tavard Date: Tue, 5 Sep 2017 14:40:20 +0200 Subject: [PATCH] cdo: init at 1.7.2 (#22496) --- lib/maintainers.nix | 1 + pkgs/development/libraries/cdo/default.nix | 37 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 40 insertions(+) create mode 100644 pkgs/development/libraries/cdo/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 7251f45bc5d7..271f0f66480f 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -574,6 +574,7 @@ taku0 = "Takuo Yonezawa "; tari = "Peter Marheine "; tavyc = "Octavian Cerna "; + ltavard = "Laure Tavard "; teh = "Tom Hunger "; telotortium = "Robert Irelan "; thall = "Niclas Thall "; diff --git a/pkgs/development/libraries/cdo/default.nix b/pkgs/development/libraries/cdo/default.nix new file mode 100644 index 000000000000..b7768a3d2455 --- /dev/null +++ b/pkgs/development/libraries/cdo/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchurl, curl, hdf5, netcdf +, enable_cdi_lib ? false # build, install and link to a CDI library [default=no] +, enable_all_static ? false # build a completely statically linked CDO binary [default=no] +, enable_cxx ? false # Use CXX as default compiler [default=no] +}: + +stdenv.mkDerivation rec { + version = "1.7.2"; + name = "cdo-${version}"; + + # Dependencies + buildInputs = [ curl netcdf hdf5 ]; + + src = fetchurl { + url = "https://code.zmaw.de/attachments/download/12760/${name}.tar.gz"; + sha256 = "4c43eba7a95f77457bfe0d30fb82382b3b5f2b0cf90aca6f0f0a008f6cc7e697"; + }; + + # Configure phase + configureFlags = [ + "--with-netcdf=${netcdf}" "--with-hdf5=${hdf5}"] + ++ stdenv.lib.optional (enable_cdi_lib) "--enable-cdi-lib" + ++ stdenv.lib.optional (enable_all_static) "--enable-all-static" + ++ stdenv.lib.optional (enable_cxx) "--enable-cxx"; + + meta = { + description = "Collection of command line Operators to manipulate and analyse Climate and NWP model Data"; + longDescription = '' + Supported data formats are GRIB 1/2, netCDF 3/4, SERVICE, EXTRA and IEG. + There are more than 600 operators available. + ''; + homepage = https://code.zmaw.de/projects/cdo/; + license = stdenv.lib.licenses.gpl2; + maintainers = [ stdenv.lib.maintainers.ltavard ]; + platforms = with stdenv.lib.platforms; linux ++ darwin; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 40ff6038aed3..cd0b95aa07f4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7644,6 +7644,8 @@ with pkgs; cdk = callPackage ../development/libraries/cdk {}; + cdo = callPackage ../development/libraries/cdo {}; + cimg = callPackage ../development/libraries/cimg { }; scmccid = callPackage ../development/libraries/scmccid { };