mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
Merge pull request #39748 from matthiasbeyer/add-bat
bat: init at 0.2.0
This commit is contained in:
commit
ec95624d81
25
pkgs/tools/misc/bat/default.nix
Normal file
25
pkgs/tools/misc/bat/default.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{ stdenv, pkgs, rustPlatform, fetchFromGitHub }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
name = "bat-${version}";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sharkdp";
|
||||
repo = "bat";
|
||||
rev = "v${version}";
|
||||
sha256 = "0qbjkrakcpvnzzljifykw88g0qmmk60id23sjvhp4md54h4xg29p";
|
||||
};
|
||||
|
||||
cargoSha256 = "07r10wwxv8svrw94djl092zj512868izlxldsiljfj34230abl02";
|
||||
|
||||
buildInputs = with pkgs; [ openssl pkgconfig cmake zlib file perl curl ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A cat(1) clone with syntax highlighting and Git integration";
|
||||
homepage = https://github.com/sharkdp/bat;
|
||||
license = licenses.mit;
|
||||
maintainers = [];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -785,6 +785,8 @@ with pkgs;
|
||||
|
||||
bashmount = callPackage ../tools/filesystems/bashmount {};
|
||||
|
||||
bat = callPackage ../tools/misc/bat { };
|
||||
|
||||
bc = callPackage ../tools/misc/bc { };
|
||||
|
||||
bdf2psf = callPackage ../tools/misc/bdf2psf { };
|
||||
|
Loading…
Reference in New Issue
Block a user