Change:
For x8664-darwin, aarch64-darwin: build .#EBTKS x8664-darwin: aarch64-darwin:

Discussion:
{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper, perlPackages, <del> libminc, EBTKS }: </del> <ins> libminc, ebtks }: </ins> stdenv.mkDerivation rec { pname = "N3";

sha256 = "06hci7gzhy8p34ggvx7gah2k9yxpwhgmq1cgw8pcd1r82g4rg6kd"; }; <ins> postPatch = '' substituteInPlace src/VolumeHist/DHistogram.cc  --replace "register " "" ''; </ins> nativeBuildInputs = [ cmake makeWrapper ]; <del> buildInputs = [ libminc EBTKS ]; </del> <ins> buildInputs = [ libminc ebtks ]; </ins> propagatedBuildInputs = with perlPackages; [ perl MNI-Perllib GetoptTabular ]; <del> cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/cmake" "-DEBTKS_DIR=${EBTKS}/lib/" ]; </del> <ins> cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/cmake" "-DEBTKS_DIR=${ebtks}/lib/" ]; </ins> postFixup = '' for p in $out/bin/*; do

{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper, perlPackages, <del> libminc, EBTKS }: </del> <ins> libminc, ebtks }: </ins> stdenv.mkDerivation rec { pname = "inormalize";

patches = [ ./lgmask-interp.patch ./nu_correct_norm-interp.patch ]; <ins> postPatch = '' substituteInPlace inormalize.cc  --replace "clamp" "::clamp" ''; </ins> nativeBuildInputs = [ cmake makeWrapper ]; <del> buildInputs = [ libminc EBTKS ]; </del> <ins> buildInputs = [ libminc ebtks ]; </ins> propagatedBuildInputs = with perlPackages; [ perl GetoptTabular MNI-Perllib ]; <del> cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/cmake" "-DEBTKS_DIR=${EBTKS}/lib/" ]; </del> <ins> cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/cmake" "-DEBTKS_DIR=${ebtks}/lib/" ]; </ins> postFixup = '' for p in $out/bin/*; do

<ins> { lib, stdenv, fetchFromGitHub, cmake, libminc }: stdenv.mkDerivation { pname = "ebtks"; version  = "unstable-2017-09-23"; src = fetchFromGitHub { owner  = "BIC-MNI"; repo   = "EBTKS"; rev    = "67e4e197d8a32d6462c9bdc7af44d64ebde4fb5c"; sha256 = "1a1qw6i47fs1izx60l1ysabpmyx9j5sjnbdv8b47wi2xcc9i3hpq"; }; # 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; }; } </ins>

<del> { lib, stdenv, fetchFromGitHub, cmake, libminc }: stdenv.mkDerivation rec { pname = "EBTKS"; version  = "unstable-2017-09-23"; src = fetchFromGitHub { owner  = "BIC-MNI"; repo   = pname; rev    = "67e4e197d8a32d6462c9bdc7af44d64ebde4fb5c"; sha256 = "1a1qw6i47fs1izx60l1ysabpmyx9j5sjnbdv8b47wi2xcc9i3hpq"; }; # 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)" ''; nativeBuildInputs = [ cmake ]; buildInputs = [ libminc ]; cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/cmake" ]; meta = with lib; { homepage = "https://github.com/BIC-MNI/${pname}"; description = "Library for working with MINC files"; maintainers = with maintainers; [ bcdarwin ]; platforms = platforms.unix; license   = licenses.free; }; } </del>

### E ### <ins> EBTKS = ebtks; # Added 2024-01-21 </ins> ec2_ami_tools = ec2-ami-tools; # Added 2021-10-08 ec2_api_tools = ec2-api-tools; # Added 2021-10-08 ec2-utils = amazon-ec2-utils; # Added 2022-02-01

easyocr = with python3.pkgs; toPythonApplication easyocr; <del> EBTKS = callPackage ../development/libraries/science/biology/EBTKS { }; </del> ecasound = callPackage ../applications/audio/ecasound { }; edac-utils = callPackage ../os-specific/linux/edac-utils { };