git: fix installCheck on darwin
these days it wants `sysctl`
This commit is contained in:
parent
21dfaa24ff
commit
dd4c9eec90
1 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
||||||
, pkg-config, glib, libsecret
|
, pkg-config, glib, libsecret
|
||||||
, gzip # needed at runtime by gitweb.cgi
|
, gzip # needed at runtime by gitweb.cgi
|
||||||
, withSsh ? false
|
, withSsh ? false
|
||||||
|
, sysctl
|
||||||
, doInstallCheck ? !stdenv.isDarwin # extremely slow on darwin
|
, doInstallCheck ? !stdenv.isDarwin # extremely slow on darwin
|
||||||
, tests
|
, tests
|
||||||
}:
|
}:
|
||||||
|
@ -294,6 +295,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
"PERL_PATH=${buildPackages.perl}/bin/perl"
|
"PERL_PATH=${buildPackages.perl}/bin/perl"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nativeInstallCheckInputs = lib.optional stdenv.isDarwin sysctl;
|
||||||
|
|
||||||
preInstallCheck = ''
|
preInstallCheck = ''
|
||||||
installCheckFlagsArray+=(
|
installCheckFlagsArray+=(
|
||||||
GIT_PROVE_OPTS="--jobs $NIX_BUILD_CORES --failures --state=failed,save"
|
GIT_PROVE_OPTS="--jobs $NIX_BUILD_CORES --failures --state=failed,save"
|
||||||
|
|
Loading…
Reference in a new issue