e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
33 lines
865 B
Nix
33 lines
865 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "miller";
|
|
version = "6.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "johnkerl";
|
|
repo = "miller";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-q807J1VWzfdxz4/KAGGCDQ8Bb4T8wwRRiiIEl6M37Co=";
|
|
};
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
vendorHash = "sha256-S8Ew7PaPhdf2QY6BYXTeLF64tn+PBSfNJhAhH9uTOvo=";
|
|
|
|
postInstall = ''
|
|
mkdir -p $man/share/man/man1
|
|
mv ./man/mlr.1 $man/share/man/man1
|
|
'';
|
|
|
|
subPackages = [ "cmd/mlr" ];
|
|
|
|
meta = with lib; {
|
|
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";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ mstarzyk ];
|
|
mainProgram = "mlr";
|
|
platforms = platforms.all;
|
|
};
|
|
}
|