summaryrefslogtreecommitdiffstats
path: root/pkgs/tools
diff options
context:
space:
mode:
authorTim Steinbach <tim@nequissimus.com>2020-11-28 13:33:16 -0500
committerTim Steinbach <tim@nequissimus.com>2020-11-28 13:42:36 -0500
commitfe8fa45573b5eff05c44d6c70976c61e4b372cdd (patch)
tree2fb34ed1c33f885b12a5e9d7668dbf007ddc6d2b /pkgs/tools
parent2d85247086e1d870472602291a60a13cf445e6fa (diff)
bat: Add test
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/misc/bat/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/tools/misc/bat/default.nix b/pkgs/tools/misc/bat/default.nix
index da1f0d54f6f0..5c60305a2e74 100644
--- a/pkgs/tools/misc/bat/default.nix
+++ b/pkgs/tools/misc/bat/default.nix
@@ -1,4 +1,5 @@
{ stdenv
+, nixosTests
, rustPlatform
, fetchFromGitHub
, pkg-config
@@ -38,6 +39,8 @@ rustPlatform.buildRustPackage rec {
--prefix PATH : "${stdenv.lib.makeBinPath [ less ]}"
'';
+ passthru.tests = { inherit (nixosTests) bat; };
+
meta = with stdenv.lib; {
description = "A cat(1) clone with syntax highlighting and Git integration";
homepage = "https://github.com/sharkdp/bat";