3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/biology/N3/default.nix

36 lines
984 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper,
perlPackages,
2017-09-25 18:14:59 +01:00
libminc, EBTKS }:
stdenv.mkDerivation rec {
pname = "N3";
version = "unstable-2018-08-09";
2017-09-25 18:14:59 +01:00
src = fetchFromGitHub {
owner = "BIC-MNI";
repo = pname;
rev = "010fc2ac58ce1d67b8e6a863fac0809d3203cb9b";
sha256 = "06hci7gzhy8p34ggvx7gah2k9yxpwhgmq1cgw8pcd1r82g4rg6kd";
2017-09-25 18:14:59 +01:00
};
nativeBuildInputs = [ cmake makeWrapper ];
buildInputs = [ libminc EBTKS ];
propagatedBuildInputs = with perlPackages; [ perl MNI-Perllib GetoptTabular ];
2017-09-25 18:14:59 +01:00
cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/cmake" "-DEBTKS_DIR=${EBTKS}/lib/" ];
2017-09-25 18:14:59 +01:00
postFixup = ''
for p in $out/bin/*; do
wrapProgram $p --prefix PERL5LIB : $PERL5LIB
done
'';
meta = with lib; {
homepage = "https://github.com/BIC-MNI/N3";
2017-09-25 18:14:59 +01:00
description = "MRI non-uniformity correction for MINC files";
maintainers = with maintainers; [ bcdarwin ];
platforms = platforms.unix;
license = licenses.free;
2017-09-25 18:14:59 +01:00
};
}