From 3a6de0d71e9798b23ec143a94111380f52ca1c70 Mon Sep 17 00:00:00 2001 From: emaryn Date: Fri, 18 Apr 2025 06:39:40 +0800 Subject: [PATCH] cdo: 2.4.2 -> 2.5.1 --- pkgs/by-name/cd/cdo/package.nix | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pkgs/by-name/cd/cdo/package.nix b/pkgs/by-name/cd/cdo/package.nix index 6fb2fb68abe7..e3f10732ed21 100644 --- a/pkgs/by-name/cd/cdo/package.nix +++ b/pkgs/by-name/cd/cdo/package.nix @@ -15,9 +15,14 @@ enable_cxx ? false, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "cdo"; - version = "2.4.2"; + version = "2.5.1"; + + src = fetchurl { + url = "https://code.mpimet.mpg.de/attachments/download/29864/cdo-${finalAttrs.version}.tar.gz"; + hash = "sha256-QYv5HoZMv+VHw8jhUNMUGc+nFefTRVCMVZGxq9pUV9E="; + }; # Dependencies buildInputs = [ @@ -27,11 +32,6 @@ stdenv.mkDerivation rec { python3 ]; - src = fetchurl { - url = "https://code.mpimet.mpg.de/attachments/download/29481/${pname}-${version}.tar.gz"; - sha256 = "sha256-TfH+K4+S9Uwn6585nt+rQNkyIAWmcyyhUk71wWJ6xOc="; - }; - configureFlags = [ "--with-netcdf=${netcdf}" @@ -42,7 +42,7 @@ stdenv.mkDerivation rec { ++ lib.optional enable_all_static "--enable-all-static" ++ lib.optional enable_cxx "--enable-cxx"; - meta = with lib; { + meta = { description = "Collection of command line Operators to manipulate and analyse Climate and NWP model Data"; mainProgram = "cdo"; longDescription = '' @@ -50,8 +50,8 @@ stdenv.mkDerivation rec { There are more than 600 operators available. ''; homepage = "https://code.mpimet.mpg.de/projects/cdo/"; - license = licenses.bsd3; - maintainers = [ maintainers.ltavard ]; - platforms = with platforms; linux ++ darwin; + license = lib.licenses.bsd3; + maintainers = [ lib.maintainers.ltavard ]; + platforms = with lib.platforms; linux ++ darwin; }; -} +})