From 43697057562d750004e9b9d12cd8bd772f5ee249 Mon Sep 17 00:00:00 2001 From: tobim Date: Sun, 24 Jan 2021 00:54:44 +0100 Subject: [PATCH] re2: fix for pkgsStatic (#110581) Co-authored-by: Sandro --- pkgs/development/libraries/re2/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/re2/default.nix b/pkgs/development/libraries/re2/default.nix index faa576faa0d..2d8d0059764 100644 --- a/pkgs/development/libraries/re2/default.nix +++ b/pkgs/development/libraries/re2/default.nix @@ -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";