summary refs log tree commit diff
path: root/pkgs/tools/misc
diff options
context:
space:
mode:
authorxeji <36407913+xeji@users.noreply.github.com>2018-05-01 18:12:26 +0200
committerGitHub <noreply@github.com>2018-05-01 18:12:26 +0200
commitec95624d81a8d2134a1ebb13301d33383c3c3d10 (patch)
tree89ff1c4e52ea8baea380d748c3a83bbc32fb404d /pkgs/tools/misc
parent673f4c52f473391320baff1955fc7b4ef5ede808 (diff)
parent6dbc010a7dfa8c2958a74fe6daa389d7e8869d30 (diff)
downloadnixlib-ec95624d81a8d2134a1ebb13301d33383c3c3d10.tar
nixlib-ec95624d81a8d2134a1ebb13301d33383c3c3d10.tar.gz
nixlib-ec95624d81a8d2134a1ebb13301d33383c3c3d10.tar.bz2
nixlib-ec95624d81a8d2134a1ebb13301d33383c3c3d10.tar.lz
nixlib-ec95624d81a8d2134a1ebb13301d33383c3c3d10.tar.xz
nixlib-ec95624d81a8d2134a1ebb13301d33383c3c3d10.tar.zst
nixlib-ec95624d81a8d2134a1ebb13301d33383c3c3d10.zip
Merge pull request #39748 from matthiasbeyer/add-bat
bat: init at 0.2.0
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r--pkgs/tools/misc/bat/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/tools/misc/bat/default.nix b/pkgs/tools/misc/bat/default.nix
new file mode 100644
index 000000000000..5516f4a26a3d
--- /dev/null
+++ b/pkgs/tools/misc/bat/default.nix
@@ -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;
+  };
+}