nushellPlugins: fix check phases

This commit is contained in:
Aidan Gauland 2023-09-12 08:48:00 +12:00 committed by Yt
parent 48ae3d24bc
commit 8024ef9b1c
3 changed files with 9 additions and 4 deletions

View File

@ -15,7 +15,9 @@ rustPlatform.buildRustPackage {
nativeBuildInputs = [ pkg-config ];
buildInputs = lib.optionals stdenv.isDarwin [ IOKit Foundation ];
cargoBuildFlags = [ "--package nu_plugin_formats" ];
doCheck = false;
checkPhase = ''
cargo test --manifest-path crates/nu_plugin_formats/Cargo.toml
'';
meta = with lib; {
description = "A formats plugin for Nushell";
homepage = "https://github.com/nushell/nushell/tree/main/crates/nu_plugin_formats";

View File

@ -15,7 +15,9 @@ rustPlatform.buildRustPackage {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
cargoBuildFlags = [ "--package nu_plugin_gstat" ];
doCheck = false; # some tests fail
checkPhase = ''
cargo test --manifest-path crates/nu_plugin_gstat/Cargo.toml
'';
meta = with lib; {
description = "A git status plugin for Nushell";
homepage = "https://github.com/nushell/nushell/tree/main/crates/nu_plugin_gstat";

View File

@ -19,8 +19,9 @@ rustPlatform.buildRustPackage {
cargoBuildFlags = [ "--package nu_plugin_query" ];
# compilation fails with a missing symbol
doCheck = false;
checkPhase = ''
cargo test --manifest-path crates/nu_plugin_query/Cargo.toml
'';
passthru = {
updateScript = nix-update-script { };