inormalize: fix build on darwin

This commit is contained in:
Weijia Wang 2024-01-21 23:26:55 +01:00
parent 07ae660f55
commit 54f104a929

View File

@ -15,6 +15,11 @@ stdenv.mkDerivation rec {
patches = [ ./lgmask-interp.patch ./nu_correct_norm-interp.patch ];
postPatch = ''
substituteInPlace inormalize.cc \
--replace "clamp" "::clamp"
'';
nativeBuildInputs = [ cmake makeWrapper ];
buildInputs = [ libminc ebtks ];
propagatedBuildInputs = with perlPackages; [ perl GetoptTabular MNI-Perllib ];