diff --git a/overlays.nix b/overlays.nix index b9556a4..85e913c 100755 --- a/overlays.nix +++ b/overlays.nix @@ -82,6 +82,30 @@ let } ); + # usage: nix-build . -A .withoutChecks + overlays.withoutChecks = mkDerivationOverlay ( + final: prev: prevStdenv: finalAttrs: prevAttrs: { + passthru = { + withoutChecks = prevStdenv.mkDerivation ( + prevAttrs + // { + doCheck = false; + doInstallCheck = false; + # stub phases and inputs to reduce closure, in case the builder doesn't do this correctly + checkInputs = []; + nativeCheckInputs = []; + preCheck = ":"; + postCheck = ":"; + checkPhase = ":"; + preInstallCheck = ":"; + postInstallCheck = ":"; + installCheckPhase = ":"; + } + ); + } // prevAttrs.passthru or { }; + } + ); + # usage: nix-build . -A .srcOnly overlays.srcOnly = mkDerivationOverlay ( final: prev: prevStdenv: finalAttrs: prevAttrs: { @@ -536,6 +560,7 @@ let in [ overlays.withDebug + overlays.withoutChecks overlays.srcOnly overlays.withInvalidateFetcherByDrvHash overlays.withUnpacked