2022-07-26 19:47:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper, perlPackages, libminc }:
|
2017-09-25 15:34:39 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mni_autoreg";
|
2022-07-26 19:47:22 +00:00
|
|
|
version = "unstable-2022-05-20";
|
2017-09-25 15:34:39 +00:00
|
|
|
|
2017-09-26 17:22:46 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BIC-MNI";
|
|
|
|
repo = pname;
|
2022-07-26 19:47:22 +00:00
|
|
|
rev = "be7bd25bf7776974e0f2c1d90b6e7f8ccc0c8874";
|
|
|
|
sha256 = "sGMZbCrdV6yAOgGiqvBFOUr6pGlTCqwy8yNrPxMoKco=";
|
2017-09-25 15:34:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake makeWrapper ];
|
|
|
|
buildInputs = [ libminc ];
|
2018-12-15 03:50:31 +00:00
|
|
|
propagatedBuildInputs = with perlPackages; [ perl GetoptTabular MNI-Perllib ];
|
2017-09-25 15:34:39 +00:00
|
|
|
|
2020-07-22 19:59:47 +00:00
|
|
|
cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/cmake" ];
|
2017-09-25 15:34:39 +00:00
|
|
|
# testing broken: './minc_wrapper: Permission denied' from Testing/ellipse0.mnc
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
for prog in autocrop mritoself mritotal xfmtool; do
|
|
|
|
echo $out/bin/$prog
|
|
|
|
wrapProgram $out/bin/$prog --prefix PERL5LIB : $PERL5LIB;
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/BIC-MNI/mni_autoreg";
|
2017-09-25 15:34:39 +00:00
|
|
|
description = "Tools for automated registration using the MINC image format";
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
platforms = platforms.unix;
|
2017-09-26 17:22:46 +00:00
|
|
|
license = licenses.free;
|
2017-09-25 15:34:39 +00:00
|
|
|
};
|
|
|
|
}
|