depot/third_party/nixpkgs/pkgs/tools/text/miller/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

26 lines
738 B
Nix

{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "miller";
version = "6.4.0";
src = fetchFromGitHub {
owner = "johnkerl";
repo = "miller";
rev = "v${version}";
sha256 = "sha256-nxkJfbZ5zdAKtmhZiWhTV0cU+qvqimOADC9T0r+1iS0=";
};
vendorSha256 = "sha256-EF5hTtTGGOYg9TGIsR3UL2Sxc3FHGV2q5VNXlBNma/M=";
subPackages = [ "cmd/mlr" ];
meta = with lib; {
description = "Like awk, sed, cut, join, and sort for data formats such as CSV, TSV, JSON, JSON Lines, and positionally-indexed";
homepage = "https://github.com/johnkerl/miller";
license = licenses.bsd2;
maintainers = with maintainers; [ mstarzyk ];
mainProgram = "mlr";
platforms = platforms.all;
};
}