summary refs log tree commit diff
path: root/pkgs/shells
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2020-06-28 18:18:09 +0200
committerGitHub <noreply@github.com>2020-06-28 18:18:09 +0200
commit701720bfe16918f35b1989e443113a79605303f7 (patch)
tree7f8f62adee4c4796d87fb9222ab6a77d3fd8fb9b /pkgs/shells
parentbd0d0e935c54890dfd9e0f26dce80f72f4749ddb (diff)
parent54bba2ee123c04b614fae06d7026959635bd2003 (diff)
downloadnixpkgs-701720bfe16918f35b1989e443113a79605303f7.tar
nixpkgs-701720bfe16918f35b1989e443113a79605303f7.tar.gz
nixpkgs-701720bfe16918f35b1989e443113a79605303f7.tar.bz2
nixpkgs-701720bfe16918f35b1989e443113a79605303f7.tar.lz
nixpkgs-701720bfe16918f35b1989e443113a79605303f7.tar.xz
nixpkgs-701720bfe16918f35b1989e443113a79605303f7.tar.zst
nixpkgs-701720bfe16918f35b1989e443113a79605303f7.zip
Merge pull request #90714 from Philipp-M/fix-nushell-checkphase
nushell: add checkPhase without --target which causes failing tests
Diffstat (limited to 'pkgs/shells')
-rw-r--r--pkgs/shells/nushell/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/shells/nushell/default.nix b/pkgs/shells/nushell/default.nix
index 5994e2829ed..a52cc4621cb 100644
--- a/pkgs/shells/nushell/default.nix
+++ b/pkgs/shells/nushell/default.nix
@@ -39,6 +39,13 @@ rustPlatform.buildRustPackage rec {
     export HOME=$TMPDIR
   '';
 
+  checkPhase = ''
+    runHook preCheck
+    echo "Running cargo test"
+    cargo test
+    runHook postCheck
+  '';
+
   meta = with lib; {
     description = "A modern shell written in Rust";
     homepage = "https://www.nushell.sh/";