Merge master into staging-next

This commit is contained in:
github-actions[bot]
2021-05-12 12:27:04 +00:00
committed by GitHub
36 changed files with 320 additions and 213 deletions

View File

@@ -10,6 +10,8 @@
, libiconv
, AppKit
, Security
, nghttp2
, libgit2
, withStableFeatures ? true
}:
@@ -32,10 +34,15 @@ rustPlatform.buildRustPackage rec {
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ zlib libiconv Security ]
++ lib.optionals (withStableFeatures && stdenv.isLinux) [ xorg.libX11 ]
++ lib.optionals (withStableFeatures && stdenv.isDarwin) [ AppKit ];
++ lib.optionals (withStableFeatures && stdenv.isDarwin) [ AppKit nghttp2 libgit2 ];
cargoBuildFlags = lib.optional withStableFeatures "--features stable";
# TODO investigate why tests are broken on darwin
# failures show that tests try to write to paths
# outside of TMPDIR
doCheck = ! stdenv.isDarwin;
checkPhase = ''
runHook preCheck
echo "Running cargo test"