2022-03-13 20:35:50 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2017-12-29 20:55:42 +00:00
|
|
|
|
2022-03-13 20:35:50 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "miller";
|
2022-03-13 20:35:50 +00:00
|
|
|
version = "6.2.0";
|
2017-12-29 20:55:42 +00:00
|
|
|
|
2019-09-02 22:42:25 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "johnkerl";
|
|
|
|
repo = "miller";
|
2022-03-13 20:35:50 +00:00
|
|
|
# NOTE: The tag v6.2.0 has still old version number, as reported by
|
|
|
|
# `mlr --version`. This is the current head of the 6.2.0 branch, with
|
|
|
|
# the correct version number.
|
|
|
|
#
|
|
|
|
# For future releases please check if we can use
|
|
|
|
# `rev = "v${version}"` again.
|
|
|
|
rev = "a6dc231eefc209eb66b50b0773542c2e63501bba";
|
|
|
|
sha256 = "sha256-hMWcf43o1wiVjHsgH+ZDBny5vlZQkKyoJN5np4gUy4w=";
|
2017-12-29 20:55:42 +00:00
|
|
|
};
|
|
|
|
|
2022-03-13 20:35:50 +00:00
|
|
|
vendorSha256 = "sha256-2tl/twzkvWB1lnvi3fIptM77zi0lmAn7Pzoe0/lW6o4=";
|
|
|
|
|
|
|
|
subPackages = [ "cmd/mlr" ];
|
2017-12-29 20:55:42 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-03-13 20:35:50 +00:00
|
|
|
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";
|
2017-12-29 20:55:42 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ mstarzyk ];
|
2022-04-01 19:34:55 +00:00
|
|
|
mainProgram = "mlr";
|
2017-12-29 20:55:42 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|