Unverified Commit 58c85835 authored by figsoda's avatar figsoda Committed by GitHub
Browse files

Merge pull request #234540 from figsoda/topfew

parents f1423fd5 5c2207bc
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:

buildGoModule rec {
  pname = "topfew";
  version = "0.9.0";

  src = fetchFromGitHub {
    owner = "timbray";
    repo = "topfew";
    rev = version;
    hash = "sha256-6ydi/4LyqTLKpR00f4zpcrTnCorlhnsBOxdhzBMNcRI=";
  };

  vendorHash = null;

  nativeBuildInputs = [
    installShellFiles
  ];

  ldflags = [ "-s" "-w" ];

  postInstall = ''
    installManPage doc/tf.1
  '';

  meta = with lib; {
    description = "Finds the fields (or combinations of fields) which appear most often in a stream of records";
    homepage = "https://github.com/timbray/topfew";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ figsoda ];
    mainProgram = "tf";
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -13114,6 +13114,8 @@ with pkgs;
  toml2nix = callPackage ../development/tools/toml2nix { };
  topfew = callPackage ../tools/text/topfew { };
  topfew-rs = callPackage ../tools/text/topfew-rs { };
  topgrade = callPackage ../tools/misc/topgrade {