depot/third_party/nixpkgs/pkgs/applications/science/biology/minc-tools/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

66 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
makeWrapper,
flex,
bison,
perl,
TextFormat,
libminc,
libjpeg,
nifticlib,
zlib,
}:
stdenv.mkDerivation rec {
pname = "minc-tools";
version = "2.3.06-unstable-2023-08-12";
src = fetchFromGitHub {
owner = "BIC-MNI";
repo = pname;
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"
];
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;
};
}