Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{
|
|
antlr2,
|
|
coreutils,
|
|
curl,
|
|
fetchFromGitHub,
|
|
flex,
|
|
gsl,
|
|
lib,
|
|
libtool,
|
|
netcdf,
|
|
netcdfcxx4,
|
|
stdenv,
|
|
udunits,
|
|
which,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "nco";
|
|
version = "5.3.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nco";
|
|
repo = "nco";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-p7GUUgMlZFnJ5kA3x4QpcVmQUQNsjMr2Q8Mrzf6k54Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
antlr2
|
|
flex
|
|
which
|
|
];
|
|
|
|
buildInputs = [
|
|
coreutils
|
|
curl
|
|
gsl
|
|
netcdf
|
|
netcdfcxx4
|
|
udunits
|
|
];
|
|
|
|
postPatch = ''
|
|
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"
|
|
'';
|
|
|
|
makeFlags = lib.optionals stdenv.hostPlatform.isDarwin [ "LIBTOOL=${libtool}/bin/libtool" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
description = "NetCDF Operator toolkit";
|
|
homepage = "https://nco.sourceforge.net/";
|
|
license = lib.licenses.bsd3;
|
|
longDescription = "The NCO (netCDF Operator) toolkit manipulates and analyzes data stored in netCDF-accessible formats, including DAP, HDF4, and HDF5";
|
|
maintainers = with lib.maintainers; [ bzizou ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|