1 { lib, stdenv, fetchFromGitHub, cmake, libminc }:
5 version = "unstable-2017-09-23";
7 src = fetchFromGitHub {
10 rev = "67e4e197d8a32d6462c9bdc7af44d64ebde4fb5c";
11 hash = "sha256-+MIRE2NdRH7IQrstK3WRqft6l9I+UGD6j0G7Q6LhOKg=";
14 # error: use of undeclared identifier 'finite'; did you mean 'isfinite'?
16 substituteInPlace templates/EBTKS/SimpleArray.h \
17 --replace "#define FINITE(x) finite(x)" "#define FINITE(x) isfinite(x)"
19 # error: ISO C++17 does not allow 'register' storage class specifier
21 find . -type f -exec sed -i -e 's/register //g' {} +
24 nativeBuildInputs = [ cmake ];
25 buildInputs = [ libminc ];
27 cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/cmake" ];
30 homepage = "https://github.com/BIC-MNI/EBTKS";
31 description = "Library for working with MINC files";
32 maintainers = with maintainers; [ bcdarwin ];
33 platforms = platforms.unix;
34 license = licenses.free;