Files
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

70 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
makeWrapper,
flex,
bison,
perl,
TextFormat,
libminc,
libjpeg,
nifticlib,
zlib,
}:
stdenv.mkDerivation {
pname = "minc-tools";
version = "2.3.06-unstable-2023-08-12";
src = fetchFromGitHub {
owner = "BIC-MNI";
repo = "minc-tools";
rev = "c86a767dbb63aaa05ee981306fa09f6133bde427";
hash = "sha256-PLNcuDU0ht1PcjloDhrPzpOpE42gbhPP3rfHtP7WnM4=";
};
nativeBuildInputs = [
cmake
flex
bison
makeWrapper
];
buildInputs = [
libminc
libjpeg
nifticlib
zlib
];
propagatedBuildInputs = [
perl
TextFormat
];
cmakeFlags = [
"-DLIBMINC_DIR=${libminc}/lib/cmake"
"-DZNZ_INCLUDE_DIR=${nifticlib}/include/nifti"
"-DNIFTI_INCLUDE_DIR=${nifticlib}/include/nifti"
];
env.NIX_CFLAGS_COMPILE = "-D_FillValue=NC_FillValue";
postFixup = ''
for prog in minccomplete minchistory mincpik; do
wrapProgram $out/bin/$prog --prefix PERL5LIB : $PERL5LIB
done
'';
meta = with lib; {
homepage = "https://github.com/BIC-MNI/minc-tools";
description = "Command-line utilities for working with MINC files";
maintainers = with maintainers; [ bcdarwin ];
platforms = platforms.unix;
license = licenses.free;
broken = stdenv.hostPlatform.isDarwin;
};
}