re2: fix for pkgsStatic (#110581)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
tobim 2021-01-24 00:54:44 +01:00 committed by GitHub
parent 57517f4c9b
commit 4369705756
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,10 +17,14 @@ stdenv.mkDerivation {
substituteInPlace Makefile --replace "SED_INPLACE=sed -i '''" "SED_INPLACE=sed -i"
'';
buildFlags = lib.optionals stdenv.hostPlatform.isStatic [ "static" ];
preCheck = "patchShebangs runtests";
doCheck = true;
checkTarget = "test";
installTargets = lib.optionals stdenv.hostPlatform.isStatic [ "static-install" ];
doInstallCheck = true;
installCheckTarget = "testinstall";