1 { lib, stdenv, fetchFromGitHub, cmake, makeWrapper,
5 stdenv.mkDerivation rec {
7 version = "unstable-2014-10-21";
9 src = fetchFromGitHub {
12 rev = "79cea9cdfe7b99abfd40afda89ab2253b596ad2f";
13 sha256 = "1ahqv5q0ljvji99a5q8azjkdf6bgp6nr8lwivkqwqs3jm0k5clq7";
16 patches = [ ./lgmask-interp.patch ./nu_correct_norm-interp.patch ];
19 substituteInPlace inormalize.cc \
20 --replace "clamp" "::clamp"
23 nativeBuildInputs = [ cmake makeWrapper ];
24 buildInputs = [ libminc ebtks ];
25 propagatedBuildInputs = with perlPackages; [ perl GetoptTabular MNI-Perllib ];
27 cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/cmake" "-DEBTKS_DIR=${ebtks}/lib/" ];
30 for p in $out/bin/*; do
31 wrapProgram $p --prefix PERL5LIB : $PERL5LIB
36 homepage = "https://github.com/BIC-MNI/${pname}";
37 description = "Program to normalize intensity of MINC files";
38 maintainers = with maintainers; [ bcdarwin ];
39 platforms = platforms.unix;
40 license = licenses.free;