Commit 9eb632b9 authored by Ben Darwin's avatar Ben Darwin Committed by github-actions[bot]
Browse files

ebtks: unstable-2017-09-23 -> 1.6.40-unstable-2025-05-06

(cherry picked from commit 6f79134a)
parent 3cf424d5
Loading
Loading
Loading
Loading
+7 −17
Original line number Diff line number Diff line
@@ -8,35 +8,25 @@

stdenv.mkDerivation {
  pname = "ebtks";
  version = "unstable-2017-09-23";
  version = "1.6.40-unstable-2025-05-06";

  src = fetchFromGitHub {
    owner = "BIC-MNI";
    repo = "EBTKS";
    rev = "67e4e197d8a32d6462c9bdc7af44d64ebde4fb5c";
    hash = "sha256-+MIRE2NdRH7IQrstK3WRqft6l9I+UGD6j0G7Q6LhOKg=";
    rev = "7317b54d79bd7d80b5361dc44a7966709d9a8b36";
    hash = "sha256-kp3uPvsIker8918stsVUdMC72A6Jz0K7r5PFDLbWqNo=";
  };

  # error: use of undeclared identifier 'finite'; did you mean 'isfinite'?
  postPatch = ''
    substituteInPlace templates/EBTKS/SimpleArray.h \
      --replace "#define FINITE(x) finite(x)" "#define FINITE(x) isfinite(x)"
  ''
  # error: ISO C++17 does not allow 'register' storage class specifier
  + ''
    find . -type f -exec sed -i -e 's/register //g' {} +
  '';

  nativeBuildInputs = [ cmake ];
  buildInputs = [ libminc ];

  cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/cmake" ];

  meta = with lib; {
  meta = {
    homepage = "https://github.com/BIC-MNI/EBTKS";
    description = "Library for working with MINC files";
    maintainers = with maintainers; [ bcdarwin ];
    platforms = platforms.unix;
    license = licenses.free;
    maintainers = with lib.maintainers; [ bcdarwin ];
    platforms = lib.platforms.unix;
    license = lib.licenses.free;
  };
}