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

31 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv, fetchzip, netcdf, netcdfcxx4, gsl, udunits, antlr, which, curl, flex, coreutils }:
2016-02-22 13:53:34 +00:00
stdenv.mkDerivation rec {
2020-06-06 14:33:59 +01:00
version = "4.9.3";
pname = "nco";
2016-02-22 13:53:34 +00:00
nativeBuildInputs = [ flex which ];
buildInputs = [ netcdf netcdfcxx4 gsl udunits antlr 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";
2020-06-06 14:33:59 +01:00
sha256 = "0jpv2hw2as5wh06ac4hkhy7964w81pm7kp6nbwhmiyfzjzhwqhjy";
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"
'';
2019-07-17 08:52:01 +01: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/";
2016-02-22 13:53:34 +00:00
license = stdenv.lib.licenses.gpl3;
maintainers = [ stdenv.lib.maintainers.bzizou ];
platforms = stdenv.lib.platforms.linux;
};
}