git: fix installCheck on darwin

these days it wants `sysctl`
This commit is contained in:
Robert Scott 2023-05-06 15:18:28 +01:00
parent 21dfaa24ff
commit dd4c9eec90

View file

@ -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"