Files
nixpkgs/pkgs/by-name/eb/ebtks/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

43 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
libminc,
}:
stdenv.mkDerivation {
pname = "ebtks";
version = "unstable-2017-09-23";
src = fetchFromGitHub {
owner = "BIC-MNI";
repo = "EBTKS";
rev = "67e4e197d8a32d6462c9bdc7af44d64ebde4fb5c";
hash = "sha256-+MIRE2NdRH7IQrstK3WRqft6l9I+UGD6j0G7Q6LhOKg=";
};
# 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; {
homepage = "https://github.com/BIC-MNI/EBTKS";
description = "Library for working with MINC files";
maintainers = with maintainers; [ bcdarwin ];
platforms = platforms.unix;
license = licenses.free;
};
}