Unverified Commit e1605726 authored by Sebastián Mancilla's avatar Sebastián Mancilla Committed by GitHub
Browse files

Merge pull request #331280 from mattpolzin/cdo-update

cdo: 2.2.2 -> 2.4.2
parents 44d6eaa0 4c9c4d55
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -9,14 +9,14 @@

stdenv.mkDerivation rec {
  pname = "cdo";
  version = "2.2.2";
  version = "2.4.2";

  # Dependencies
  buildInputs = [ curl netcdf hdf5 python3 ];

  src = fetchurl {
    url = "https://code.mpimet.mpg.de/attachments/download/28882/${pname}-${version}.tar.gz";
    sha256 = "sha256-QZx3MVJEAZr0GilsBQZvR0zMv5Tev6rp4hBtpRvHyTc=";
    url = "https://code.mpimet.mpg.de/attachments/download/29481/${pname}-${version}.tar.gz";
    sha256 = "sha256-TfH+K4+S9Uwn6585nt+rQNkyIAWmcyyhUk71wWJ6xOc=";
  };

 configureFlags = [
@@ -28,6 +28,12 @@ stdenv.mkDerivation rec {
   ++ lib.optional enable_all_static "--enable-all-static"
   ++ lib.optional enable_cxx "--enable-cxx";

  # address error: 'TARGET_OS_MACCATALYST' is not defined,
  # evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_]
  # we don't want to appear to be a catalyst build;
  # we are a TARGET_OS_MAC
  env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-DTARGET_OS_MACCATALYST=0";

  meta = with lib; {
    description = "Collection of command line Operators to manipulate and analyse Climate and NWP model Data";
    mainProgram = "cdo";