1 { lib, stdenv, fetchFromGitHub, netcdf, netcdfcxx4, gsl, udunits, antlr2, which, curl, flex, coreutils }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-LmxHgSBBqXK5M4KOthd8R+H5EY3O5lueb2gnw5mK8Xw=";
14 nativeBuildInputs = [ flex which antlr2 ];
16 buildInputs = [ netcdf netcdfcxx4 gsl udunits curl coreutils ];
19 substituteInPlace src/nco/nco_fl_utl.c \
20 --replace "/bin/cp" "${coreutils}/bin/cp"
21 substituteInPlace src/nco/nco_fl_utl.c \
22 --replace "/bin/mv" "${coreutils}/bin/mv"
25 enableParallelBuilding = true;
28 description = "NetCDF Operator toolkit";
29 longDescription = "The NCO (netCDF Operator) toolkit manipulates and analyzes data stored in netCDF-accessible formats, including DAP, HDF4, and HDF5";
30 homepage = "http://nco.sourceforge.net/";
31 license = licenses.bsd3;
32 maintainers = with maintainers; [ bzizou ];
33 platforms = platforms.linux;