mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
31 lines
1.0 KiB
Nix
31 lines
1.0 KiB
Nix
{ stdenv, fetchzip, netcdf, netcdfcxx4, gsl, udunits, antlr, which, curl, flex, coreutils }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "4.9.6";
|
|
pname = "nco";
|
|
|
|
nativeBuildInputs = [ flex which ];
|
|
buildInputs = [ netcdf netcdfcxx4 gsl udunits antlr curl coreutils ];
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/nco/nco/archive/${version}.tar.gz";
|
|
sha256 = "0f8vf66700dcr48jqd371bbldc61xkrilby13xp8j5l9q4xal808";
|
|
};
|
|
|
|
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"
|
|
'';
|
|
|
|
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 = stdenv.lib.licenses.gpl3;
|
|
maintainers = [ stdenv.lib.maintainers.bzizou ];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|