nixpkgs/pkgs/tools/security/gospider/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

35 lines
930 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "gospider";
version = "1.1.6";
src = fetchFromGitHub {
owner = "jaeles-project";
repo = pname;
rev = "v${version}";
sha256 = "sha256-1EnKheHaS1kxw0cjxCahT3rUWBXiqxjKefrDBI2xIvY=";
};
vendorHash = "sha256-egjjSEZH8F6UMbnkz3xytIzdW/oITB3RL1ddxrmvSZM=";
# tests require internet access and API keys
doCheck = false;
meta = with lib; {
description = "Fast web spider written in Go";
mainProgram = "gospider";
longDescription = ''
GoSpider is a fast web crawler that parses sitemap.xml and robots.txt file.
It can generate and verify link from JavaScript files, extract URLs from
various sources and can detect subdomains from the response source.
'';
homepage = "https://github.com/jaeles-project/gospider";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}