mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
parent
77134f22bf
commit
5c2207bc41
2 changed files with 39 additions and 0 deletions
37
pkgs/tools/text/topfew/default.nix
Normal file
37
pkgs/tools/text/topfew/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ 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";
|
||||
};
|
||||
}
|
|
@ -13096,6 +13096,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 {
|
||||
|
|
Loading…
Reference in a new issue