nixpkgs/pkgs/tools/misc/bat/default.nix

26 lines
760 B
Nix
Raw Normal View History

2018-04-30 22:12:20 +02:00
{ stdenv, pkgs, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
name = "bat-${version}";
2018-05-09 08:59:52 +02:00
version = "0.3.0";
2018-04-30 22:12:20 +02:00
src = fetchFromGitHub {
owner = "sharkdp";
repo = "bat";
rev = "v${version}";
2018-05-09 08:59:52 +02:00
sha256 = "15d7i0iy5lks3jg9js6n6fy4xanjk76fpryl2kq88kdkq67hpzfp";
2018-04-30 22:12:20 +02:00
};
2018-05-09 08:59:52 +02:00
cargoSha256 = "179a7abhzpxjp3cc820jzxg0qk1fiv9rkpazwnzhkjl8yd7b7qi3";
2018-04-30 22:12:20 +02:00
2018-05-09 08:59:52 +02:00
buildInputs = with pkgs; [ pkgconfig cmake zlib file perl curl ];
2018-04-30 22:12:20 +02:00
meta = with stdenv.lib; {
description = "A cat(1) clone with syntax highlighting and Git integration";
homepage = https://github.com/sharkdp/bat;
2018-05-09 08:59:52 +02:00
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ dywedir ];
2018-04-30 22:12:20 +02:00
platforms = platforms.linux;
};
}