git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #39748 from matthiasbeyer/add-bat

bat: init at 0.2.0

commitec95624d81a8d2134a1ebb13301d33383c3c3d10 authorxeji <36407913+xeji@users.noreply.github.com> dateTue 1 May 2018, 18:12 (9 years ago) parent673f4c56dbc010
2 files changed+27
pkgs/tools/misc/bat/default.nix+25 pkgs/top-level/all-packages.nix+2
pkgs/tools/misc/bat/default.nixnew file+25
@@ -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+}
pkgs/top-level/all-packages.nix+2
@@ -785,6 +785,8 @@ with pkgs;
785785
786786 bashmount = callPackage ../tools/filesystems/bashmount {};
787787
788+ bat = callPackage ../tools/misc/bat { };
789+
788790 bc = callPackage ../tools/misc/bc { };
789791
790792 bdf2psf = callPackage ../tools/misc/bdf2psf { };