diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-07 13:55:55 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-07 13:55:55 +0100 |
commit | 15da30e04a8da461a3937b3a453f2b52d77ea2f8 (patch) | |
tree | f51e44ef3ca6f28f09c5ae7c6e2a126138df431d /pkgs/tools/security/subjs | |
parent | 210b6509eda2a217adb8b2ec2eebe95c33ad146e (diff) |
subjs: init at 1.0.1
Diffstat (limited to 'pkgs/tools/security/subjs')
-rw-r--r-- | pkgs/tools/security/subjs/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/security/subjs/default.nix b/pkgs/tools/security/subjs/default.nix new file mode 100644 index 0000000000000..ad10ef5eaf24c --- /dev/null +++ b/pkgs/tools/security/subjs/default.nix @@ -0,0 +1,32 @@ +{ buildGoModule +, fetchFromGitHub +, stdenv +}: + +buildGoModule rec { + pname = "subjs"; + version = "1.0.1"; + + src = fetchFromGitHub { + owner = "lc"; + repo = pname; + rev = "v${version}"; + sha256 = "01cip5rf35dnh3l325p03y6axyqdpf48ry4zcwiyd7hlfsglbk3j"; + }; + + vendorSha256 = "1y01k8pvv7y9zb15wbk068cvkx0g83484jak2dvcvghqcf5j1fr1"; + + buildFlagsArray = [ "-ldflags=-s -w -X main.AppVersion=${version}" ]; + + meta = with stdenv.lib; { + description = "Fetcher for Javascript files"; + longDescription = '' + subjs fetches Javascript files from a list of URLs or subdomains. + Analyzing Javascript files can help you find undocumented endpoints, + secrets and more. + ''; + homepage = "https://github.com/lc/subjs"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} |