Files
nixpkgs/pkgs/by-name/pn/pnetcdf/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

80 lines
1.7 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
gfortran,
autoreconfHook,
perl,
mpi,
mpiCheckPhaseHook,
gitUpdater,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "pnetcdf";
version = "1.14.1";
src = fetchFromGitHub {
owner = "Parallel-NetCDF";
repo = "PnetCDF";
tag = "checkpoint.${finalAttrs.version}";
hash = "sha256-nz40Ji9qh6UatlLOuChsWYvHwfVNacJI87usGBcYyFk=";
};
nativeBuildInputs = [
perl
autoreconfHook
gfortran
];
buildInputs = [ mpi ];
postPatch = ''
patchShebangs src/binding/f77/buildiface test examples benchmarks
'';
__darwinAllowLocalNetworking = true;
doCheck = true;
nativeCheckInputs = [ mpiCheckPhaseHook ];
checkTarget = lib.concatStringsSep " " [
# build all test programs (build only, no run)
"tests"
# run sequential test programs
"check"
# run parallel test programs on 3,4,6,8 MPI processes
"ptests"
];
# cannot do parallel check otherwise failed
enableParallelChecking = false;
enableParallelBuilding = true;
passthru.updateScript = gitUpdater {
rev-prefix = "checkpoint.";
};
meta = {
homepage = "https://parallel-netcdf.github.io/";
license = with lib.licenses; [
# Files: *
# Copyright: (c) 2003 Northwestern University and Argonne National Laboratory
bsd3
# Files: src/drivers/common/utf8proc.c
# Copyright: (c) 2006-2007 Jan Behrens, FlexiGuided GmbH, Berlin
mit
# Files: src/drivers/common/utf8proc_data.c
# Copyright: 1991-2007 Unicode, Inc.
unicode-30
];
description = "Parallel I/O Library for NetCDF File Access";
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ qbisi ];
};
})