Merge pull request #249339 from r-ryantm/auto-update/nco

nco: 5.1.6 -> 5.1.7
This commit is contained in:
Pol Dellaiera 2023-08-17 09:16:35 +02:00 committed by GitHub
commit a54fc2c8e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,23 +1,48 @@
{ lib, stdenv, fetchFromGitHub, netcdf, netcdfcxx4, gsl, udunits, antlr2, which, curl, flex, coreutils, libtool }:
{ antlr2
, coreutils
, curl
, fetchFromGitHub
, flex
, gsl
, lib
, libtool
, netcdf
, netcdfcxx4
, stdenv
, udunits
, which
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "nco";
version = "5.1.6";
version = "5.1.7";
src = fetchFromGitHub {
owner = "nco";
repo = "nco";
rev = version;
sha256 = "sha256-h5HL3fe3pdj48UeL5TKunSr7PvKf26AOOOcQh77W9sk=";
rev = finalAttrs.version;
hash = "sha256-CdIZ0ql8QBM7UcEyTmt4P9gZyO8jrkLipAOsJUkpG8g=";
};
nativeBuildInputs = [ flex which antlr2 ];
nativeBuildInputs = [
antlr2
flex
which
];
buildInputs = [ netcdf netcdfcxx4 gsl udunits curl coreutils ];
buildInputs = [
coreutils
curl
gsl
netcdf
netcdfcxx4
udunits
];
postPatch = ''
substituteInPlace src/nco/nco_fl_utl.c \
--replace "/bin/cp" "${coreutils}/bin/cp"
substituteInPlace src/nco/nco_fl_utl.c \
--replace "/bin/mv" "${coreutils}/bin/mv"
'';
@ -26,12 +51,12 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
meta = with lib; {
meta = {
description = "NetCDF Operator toolkit";
longDescription = "The NCO (netCDF Operator) toolkit manipulates and analyzes data stored in netCDF-accessible formats, including DAP, HDF4, and HDF5";
homepage = "https://nco.sourceforge.net/";
license = licenses.bsd3;
maintainers = with maintainers; [ bzizou ];
platforms = platforms.unix;
license = lib.licenses.bsd3;
longDescription = "The NCO (netCDF Operator) toolkit manipulates and analyzes data stored in netCDF-accessible formats, including DAP, HDF4, and HDF5";
maintainers = with lib.maintainers; [ bzizou ];
platforms = lib.platforms.unix;
};
}
})