Commit dd4c9eec authored by Robert Scott's avatar Robert Scott
Browse files

git: fix installCheck on darwin

these days it wants `sysctl`
parent 21dfaa24
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@
, pkg-config, glib, libsecret
, gzip # needed at runtime by gitweb.cgi
, withSsh ? false
, sysctl
, doInstallCheck ? !stdenv.isDarwin  # extremely slow on darwin
, tests
}:
@@ -294,6 +295,8 @@ stdenv.mkDerivation (finalAttrs: {
    "PERL_PATH=${buildPackages.perl}/bin/perl"
  ];

  nativeInstallCheckInputs = lib.optional stdenv.isDarwin sysctl;

  preInstallCheck = ''
    installCheckFlagsArray+=(
      GIT_PROVE_OPTS="--jobs $NIX_BUILD_CORES --failures --state=failed,save"