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

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

34 lines
864 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-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
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;
};
}