blob: b908d41b6447d9141aa059a2b81c91225e3c0bfc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:
buildGoModule rec {
pname = "topfew";
version = "2.0.0";
src = fetchFromGitHub {
owner = "timbray";
repo = "topfew";
rev = "v${version}";
hash = "sha256-P3K3IhgYkrxmEG2l7EQDVWQ+P7fOjUMUFrlAnY+8NmI=";
};
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";
};
}
|