about summary refs log tree commit diff
path: root/pkgs/tools/misc/starship
diff options
context:
space:
mode:
authorDaniel Thwaites <danthwaites30@btinternet.com>2021-12-24 11:24:29 +0000
committerDaniel Thwaites <danthwaites30@btinternet.com>2022-01-12 15:47:15 +0000
commitf366ae6429096615914dd24a3ae59d7215b34180 (patch)
tree4b9e9360c45de6f47a44bad014d993910b8de66e /pkgs/tools/misc/starship
parent3f1ef8fe14ed87c0999f2a5ce7a5a1b3c3b8d7ec (diff)
nixos/starship: add a test
Diffstat (limited to 'pkgs/tools/misc/starship')
-rw-r--r--pkgs/tools/misc/starship/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/tools/misc/starship/default.nix b/pkgs/tools/misc/starship/default.nix
index 25a6aaecd0224..165ed45d7b7aa 100644
--- a/pkgs/tools/misc/starship/default.nix
+++ b/pkgs/tools/misc/starship/default.nix
@@ -6,6 +6,7 @@
 , openssl
 , installShellFiles
 , libiconv
+, nixosTests
 , Security
 }:
 
@@ -40,6 +41,10 @@ rustPlatform.buildRustPackage rec {
     HOME=$TMPDIR
   '';
 
+  passthru.tests = {
+    inherit (nixosTests) starship;
+  };
+
   meta = with lib; {
     description = "A minimal, blazing fast, and extremely customizable prompt for any shell";
     homepage = "https://starship.rs";