btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / ki / kiterunner / package.nix
blobf059eeb411539e4218999ef74905664f44e55737
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "kiterunner";
8   version = "1.0.2";
10   src = fetchFromGitHub {
11     owner = "assetnote";
12     repo = pname;
13     rev = "v${version}";
14     hash = "sha256-vIYPpkbqyk0zH10DGp2FF0aI4lFpsZavulBIiR/3kiA=";
15   };
17   vendorHash = "sha256-fgtDP6X84iPO2Tcwq5jl8700PDKixJlIihgNaPX/n9k=";
19   ldflags = [
20     "-s" "-w" "-X github.com/assetnote/kiterunner/cmd/kiterunner/cmd.Version=${version}"
21   ];
23   subPackages = [ "./cmd/kiterunner" ];
25   # Test data is missing in the repo
26   doCheck = false;
28   meta = with lib; {
29     description = "Contextual content discovery tool";
30     mainProgram = "kiterunner";
31     longDescription = ''
32       Kiterunner is a tool that is capable of not only performing traditional
33       content discovery at lightning fast speeds, but also bruteforcing routes
34       and endpoints in modern applications.
35     '';
36     homepage = "https://github.com/assetnote/kiterunner";
37     license = with licenses; [ agpl3Only ];
38     maintainers = with maintainers; [ fab ];
39   };