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";
|
2023-06-12 02:29:11 +00:00
|
|
|
version = "6.8.0";
|
2017-12-29 20:55:42 +00:00
|
|
|
|
2019-09-02 22:42:25 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "johnkerl";
|
|
|
|
repo = "miller";
|
2022-07-14 19:04:03 +00:00
|
|
|
rev = "v${version}";
|
2023-06-12 02:29:11 +00:00
|
|
|
sha256 = "sha256-AgKkB/c7rSgk2jS017vjaLPKdiWJ5y/1K5RM6c9RWQg=";
|
2017-12-29 20:55:42 +00:00
|
|
|
};
|
|
|
|
|
2023-06-12 02:29:11 +00:00
|
|
|
vendorHash = "sha256-4/BB4RaCXEgtGpBJGtccEAz9diogWTA4BxVLkOOlNMw=";
|
2022-03-13 20:35:50 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|