nixpkgs/pkgs/tools/text/miller/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
736 B
Nix
Raw Normal View History

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 {
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
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 ];
mainProgram = "mlr";
2017-12-29 20:55:42 +00:00
platforms = platforms.all;
};
}