nixpkgs/pkgs/applications/science/biology/N3/default.nix
Matthew Bauer 2c47a4229f treewide: remove ctest usages
These are already in the generated makefiles!
2018-11-18 19:31:02 -06:00

35 lines
986 B
Nix

{ stdenv, fetchFromGitHub, cmake, makeWrapper,
perl, MNI-Perllib, GetoptTabular,
libminc, EBTKS }:
stdenv.mkDerivation rec {
pname = "N3";
name = "${pname}-2017-09-18";
src = fetchFromGitHub {
owner = "BIC-MNI";
repo = pname;
rev = "2fdd939f0f2b24a4039bc6a8ade4a190a1d8e75d";
sha256 = "13z21c4r09hna3q1csvcn4i7ws5ixbdaja6ch421xv6nydjh2w5g";
};
nativeBuildInputs = [ cmake makeWrapper ];
buildInputs = [ libminc EBTKS ];
propagatedBuildInputs = [ perl MNI-Perllib GetoptTabular ];
cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/" "-DEBTKS_DIR=${EBTKS}/lib/" ];
postFixup = ''
for p in $out/bin/*; do
wrapProgram $p --prefix PERL5LIB : $PERL5LIB
done
'';
meta = with stdenv.lib; {
homepage = "https://github.com/BIC-MNI/${pname}";
description = "MRI non-uniformity correction for MINC files";
maintainers = with maintainers; [ bcdarwin ];
platforms = platforms.unix;
license = licenses.free;
};
}