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";
|
2024-03-17 01:14:27 +00:00
|
|
|
version = "6.12.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}";
|
2024-03-17 01:14:27 +00:00
|
|
|
sha256 = "sha256-0M9wdKn6SdqNAcEcIb4mkkDCUBYQ/mW+0OYt35vq9yw=";
|
2017-12-29 20:55:42 +00:00
|
|
|
};
|
|
|
|
|
2023-12-14 15:00:38 +00:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2024-03-17 01:14:27 +00:00
|
|
|
vendorHash = "sha256-WelwnwsdOhAq4jdmFAYvh4lDMsmaAItdrbC//MfWHjU=";
|
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;
|
|
|
|
};
|
|
|
|
}
|