nixVersions.nix_2_10: workaround for installcheck

This commit is contained in:
Nick Cao 2022-07-13 10:31:31 +08:00
parent 778863cbaa
commit 18c07ad150
No known key found for this signature in database
GPG key ID: 068A56CEF48FA2C1

View file

@ -11,6 +11,7 @@ let
atLeast24 = lib.versionAtLeast version "2.4pre";
atLeast25 = lib.versionAtLeast version "2.5pre";
atLeast27 = lib.versionAtLeast version "2.7pre";
atLeast210 = lib.versionAtLeast version "2.10pre";
in
{ stdenv
, autoconf-archive
@ -176,6 +177,7 @@ self = stdenv.mkDerivation {
installFlags = [ "sysconfdir=$(out)/etc" ];
doInstallCheck = true;
installCheckTarget = if atLeast210 then "installcheck" else null;
# socket path becomes too long otherwise
preInstallCheck = lib.optionalString stdenv.isDarwin ''