summary refs log tree commit diff
path: root/pkgs/tools/security/subjs
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-01-07 13:55:55 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2021-01-07 13:55:55 +0100
commit15da30e04a8da461a3937b3a453f2b52d77ea2f8 (patch)
treef51e44ef3ca6f28f09c5ae7c6e2a126138df431d /pkgs/tools/security/subjs
parent210b6509eda2a217adb8b2ec2eebe95c33ad146e (diff)
downloadnixpkgs-15da30e04a8da461a3937b3a453f2b52d77ea2f8.tar
nixpkgs-15da30e04a8da461a3937b3a453f2b52d77ea2f8.tar.gz
nixpkgs-15da30e04a8da461a3937b3a453f2b52d77ea2f8.tar.bz2
nixpkgs-15da30e04a8da461a3937b3a453f2b52d77ea2f8.tar.lz
nixpkgs-15da30e04a8da461a3937b3a453f2b52d77ea2f8.tar.xz
nixpkgs-15da30e04a8da461a3937b3a453f2b52d77ea2f8.tar.zst
nixpkgs-15da30e04a8da461a3937b3a453f2b52d77ea2f8.zip
subjs: init at 1.0.1
Diffstat (limited to 'pkgs/tools/security/subjs')
-rw-r--r--pkgs/tools/security/subjs/default.nix32
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 00000000000..ad10ef5eaf2
--- /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 ];
+  };
+}