nixpkgs/pkgs/development/libraries/nco/default.nix

33 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchzip, netcdf, netcdfcxx4, gsl, udunits, antlr, which, curl, flex, coreutils }:
2016-02-22 13:53:34 +00:00
stdenv.mkDerivation rec {
version = "4.9.8";
pname = "nco";
2016-02-22 13:53:34 +00:00
nativeBuildInputs = [ flex which antlr ];
buildInputs = [ netcdf netcdfcxx4 gsl udunits curl coreutils ];
2016-02-22 13:53:34 +00:00
src = fetchzip {
2016-02-22 13:53:34 +00:00
url = "https://github.com/nco/nco/archive/${version}.tar.gz";
sha256 = "sha256-fOdmM0I/UGhxacofEBfw9UmOOrMDUXs59ca8uvkQKqw=";
2016-02-22 13:53:34 +00: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 05:14:35 +00:00
parallelBuild = true;
2019-07-17 07:52:01 +00:00
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 = "http://nco.sourceforge.net/";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.bzizou ];
platforms = lib.platforms.linux;
2016-02-22 13:53:34 +00:00
};
}