diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2017-04-30 23:03:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-30 23:03:06 +0200 |
commit | 7ef99bf054dec65e04ae31fe0bce317795f740e3 (patch) | |
tree | bc2e0388588e2a84577968804c5f60c550a63cee /pkgs/applications/science/biology | |
parent | 6b31de49cfb122dd592c6cdc39fba93dacb22399 (diff) | |
parent | fbc9a4d7dce249963797d82a788ee9f2acaa21cf (diff) | |
download | nixpkgs-7ef99bf054dec65e04ae31fe0bce317795f740e3.tar nixpkgs-7ef99bf054dec65e04ae31fe0bce317795f740e3.tar.gz nixpkgs-7ef99bf054dec65e04ae31fe0bce317795f740e3.tar.bz2 nixpkgs-7ef99bf054dec65e04ae31fe0bce317795f740e3.tar.lz nixpkgs-7ef99bf054dec65e04ae31fe0bce317795f740e3.tar.xz nixpkgs-7ef99bf054dec65e04ae31fe0bce317795f740e3.tar.zst nixpkgs-7ef99bf054dec65e04ae31fe0bce317795f740e3.zip |
Merge pull request #24085 from bcdarwin/ants
ants: set $ANTSPATH variable in shell scripts
Diffstat (limited to 'pkgs/applications/science/biology')
-rw-r--r-- | pkgs/applications/science/biology/ants/default.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/applications/science/biology/ants/default.nix b/pkgs/applications/science/biology/ants/default.nix index fa40e53aa0a..24ab2ee9ac5 100644 --- a/pkgs/applications/science/biology/ants/default.nix +++ b/pkgs/applications/science/biology/ants/default.nix @@ -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"; |