3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/biology/minc-tools/default.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, cmake, makeWrapper, flex, bison, perl, TextFormat, libminc, libjpeg, zlib }:
2015-11-12 00:31:45 +00:00
stdenv.mkDerivation rec {
pname = "minc-tools";
name = "${pname}-2017-09-11";
2015-11-12 00:31:45 +00:00
src = fetchFromGitHub {
owner = "BIC-MNI";
repo = pname;
rev = "5b7c40425cd4f67a018055cb85c0157ee50a3056";
sha256 = "0zkcs05svp1gj5h0cdgc0k20c7lrk8m7wg3ks3xc5mkaiannj8g7";
2015-11-12 00:31:45 +00:00
};
nativeBuildInputs = [ cmake flex bison makeWrapper ];
buildInputs = [ libminc libjpeg zlib ];
propagatedBuildInputs = [ perl TextFormat ];
2015-11-12 00:31:45 +00:00
cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/" ];
checkPhase = "ctest --output-on-failure"; # still some weird test failures though
postFixup = ''
for prog in minccomplete minchistory mincpik; do
wrapProgram $out/bin/$prog --prefix PERL5LIB : $PERL5LIB
done
'';
2015-11-12 00:31:45 +00:00
enableParallelBuilding = true;
2015-11-12 00:31:45 +00:00
meta = with stdenv.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;
2015-11-12 00:31:45 +00:00
};
}