mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
Merge pull request #24085 from bcdarwin/ants
ants: set $ANTSPATH variable in shell scripts
This commit is contained in:
commit
7ef99bf054
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, cmake, itk, vtk }:
|
||||
{ stdenv, fetchFromGitHub, cmake, makeWrapper, itk, vtk }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
_name = "ANTs";
|
||||
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0gyys1lf69bl3569cskxc8r5llwcr0dsyzvlby5skhfpsyw0dh8r";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
nativeBuildInputs = [ cmake makeWrapper ];
|
||||
buildInputs = [ itk vtk ];
|
||||
|
||||
cmakeFlags = [ "-DANTS_SUPERBUILD=FALSE" "-DUSE_VTK=TRUE" ];
|
||||
@ -20,6 +20,12 @@ stdenv.mkDerivation rec {
|
||||
checkPhase = "ctest";
|
||||
doCheck = false;
|
||||
|
||||
postInstall = ''
|
||||
for file in $out/bin/*; do
|
||||
wrapProgram $file --set ANTSPATH "$out/bin"
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/stnava/ANTs;
|
||||
description = "Advanced normalization toolkit for medical image registration and other processing";
|
||||
|
Loading…
Reference in New Issue
Block a user