@@ -0,0 +1,25 @@
1+{ stdenv, pkgs, rustPlatform, fetchFromGitHub }:
2+
3+rustPlatform.buildRustPackage rec {
4+ name = "bat-${version}";
5+ version = "0.2.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "sharkdp";
9+ repo = "bat";
10+ rev = "v${version}";
11+ sha256 = "0qbjkrakcpvnzzljifykw88g0qmmk60id23sjvhp4md54h4xg29p";
12+ };
13+
14+ cargoSha256 = "07r10wwxv8svrw94djl092zj512868izlxldsiljfj34230abl02";
15+
16+ buildInputs = with pkgs; [ openssl pkgconfig cmake zlib file perl curl ];
17+
18+ meta = with stdenv.lib; {
19+ description = "A cat(1) clone with syntax highlighting and Git integration";
20+ homepage = https://github.com/sharkdp/bat;
21+ license = licenses.mit;
22+ maintainers = [];
23+ platforms = platforms.linux;
24+ };
25+}