2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchzip, netcdf, netcdfcxx4, gsl, udunits, antlr, which, curl, flex, coreutils }:
|
2016-02-22 14:53:34 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-01-20 13:54:24 +01:00
|
|
|
version = "4.9.7";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "nco";
|
2016-02-22 14:53:34 +01:00
|
|
|
|
2019-12-15 00:48:56 +01:00
|
|
|
nativeBuildInputs = [ flex which ];
|
2020-05-06 03:12:02 +02:00
|
|
|
buildInputs = [ netcdf netcdfcxx4 gsl udunits antlr curl coreutils ];
|
2016-02-22 14:53:34 +01:00
|
|
|
|
2019-12-15 00:48:56 +01:00
|
|
|
src = fetchzip {
|
2016-02-22 14:53:34 +01:00
|
|
|
url = "https://github.com/nco/nco/archive/${version}.tar.gz";
|
2021-01-20 13:54:24 +01:00
|
|
|
sha256 = "sha256-Q4okOoyodofAsMrSmAhFISeY05Be+i7OX4qy2annQq4=";
|
2016-02-22 14:53:34 +01:00
|
|
|
};
|
|
|
|
|
2020-05-06 03:12:02 +02:00
|
|
|
prePatch = ''
|
|
|
|
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"
|
|
|
|
'';
|
2020-09-26 07:14:35 +02:00
|
|
|
|
2019-07-17 09:52:01 +02:00
|
|
|
meta = {
|
2016-02-23 15:07:18 +01:00
|
|
|
description = "NetCDF Operator toolkit";
|
|
|
|
longDescription = "The NCO (netCDF Operator) toolkit manipulates and analyzes data stored in netCDF-accessible formats, including DAP, HDF4, and HDF5";
|
2019-12-15 00:48:56 +01:00
|
|
|
homepage = "http://nco.sourceforge.net/";
|
2021-01-21 18:00:13 +01:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = [ lib.maintainers.bzizou ];
|
|
|
|
platforms = lib.platforms.linux;
|
2016-02-22 14:53:34 +01:00
|
|
|
};
|
|
|
|
}
|