git-annex: skip test requiring unavailable tool on darwin

This commit is contained in:
sternenseemann 2024-04-21 23:48:32 +02:00
parent 69e0d2cb42
commit 4a1299190e
1 changed files with 11 additions and 0 deletions

View File

@ -82,6 +82,17 @@ self: super: ({
# the system-fileio tests use canonicalizePath, which fails in the sandbox
system-fileio = dontCheck super.system-fileio;
git-annex = overrideCabal (drv: {
# We can't use testFlags since git-annex side steps the Cabal test mechanism
preCheck = drv.preCheck or "" + ''
checkFlagsArray+=(
# The addurl test cases require security(1) to be in PATH which we can't
# provide from nixpkgs to my (@sternenseemann) knowledge.
"-p" "!/addurl/"
)
'';
}) super.git-annex;
# Prevents needing to add `security_tool` as a run-time dependency for
# everything using x509-system to give access to the `security` executable.
#