1{ buildGoModule
2, fetchFromGitHub
3, lib
4}:
5
6buildGoModule rec {
7 pname = "subjs";
8 version = "1.0.1";
9
10 src = fetchFromGitHub {
11 owner = "lc";
12 repo = pname;
13 rev = "v${version}";
14 sha256 = "01cip5rf35dnh3l325p03y6axyqdpf48ry4zcwiyd7hlfsglbk3j";
15 };
16
17 vendorSha256 = "1y01k8pvv7y9zb15wbk068cvkx0g83484jak2dvcvghqcf5j1fr1";
18
19 ldflags = [ "-s" "-w" "-X main.AppVersion=${version}" ];
20
21 meta = with lib; {
22 description = "Fetcher for Javascript files";
23 longDescription = ''
24 subjs fetches Javascript files from a list of URLs or subdomains.
25 Analyzing Javascript files can help you find undocumented endpoints,
26 secrets and more.
27 '';
28 homepage = "https://github.com/lc/subjs";
29 license = with licenses; [ mit ];
30 maintainers = with maintainers; [ fab ];
31 };
32}