From 4a1299190e087eead9ef5bc288e6015564fbe146 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sun, 21 Apr 2024 23:48:32 +0200 Subject: [PATCH] git-annex: skip test requiring unavailable tool on darwin --- .../haskell-modules/configuration-darwin.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix index 480059de14c0..3e7bf1f89f7c 100644 --- a/pkgs/development/haskell-modules/configuration-darwin.nix +++ b/pkgs/development/haskell-modules/configuration-darwin.nix @@ -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. #