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-09-07 04:49:49 +00:00
|
|
|
version = "6.9.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-09-07 04:49:49 +00:00
|
|
|
sha256 = "sha256-g2Jnqo3U9acyqohGpcEEogq871qJQTc7k0/oIawAQW8=";
|
2017-12-29 20:55:42 +00:00
|
|
|
};
|
|
|
|
|
2023-12-14 15:00:38 +00:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2023-09-07 04:49:49 +00:00
|
|
|
vendorHash = "sha256-/1/FTQL3Ki8QzL+1J4Ah8kwiJyGPd024di/1MC8gtkE=";
|
2022-03-13 20:35:50 +00:00
|
|
|
|
2023-12-14 15:00:38 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $man/share/man/man1
|
|
|
|
mv ./man/mlr.1 $man/share/man/man1
|
|
|
|
'';
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|