about summary refs log tree commit diff
path: root/pkgs/tools/security/jsluice
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2023-06-28 17:52:09 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2023-06-28 17:52:09 +0200
commit12b68dfdcf46edb7b02c7766b6c6bbdd45b15d02 (patch)
tree531173550e98a29b591fca95b28a1588a1874b09 /pkgs/tools/security/jsluice
parent8b2049f93b517e16ddb874c9b0691caa99f67844 (diff)
jsluice: init at unstable-2023-06-23
Diffstat (limited to 'pkgs/tools/security/jsluice')
-rw-r--r--pkgs/tools/security/jsluice/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/security/jsluice/default.nix b/pkgs/tools/security/jsluice/default.nix
new file mode 100644
index 0000000000000..18a386c94b0d1
--- /dev/null
+++ b/pkgs/tools/security/jsluice/default.nix
@@ -0,0 +1,30 @@
+{ lib
+, buildGoModule
+, fetchFromGitHub
+}:
+
+buildGoModule rec {
+  pname = "jsluice";
+  version = "unstable-2023-06-23";
+
+  src = fetchFromGitHub {
+    owner = "BishopFox";
+    repo = "jsluice";
+    rev = "f10429e1016a9573da0157eacde8f7feb9deb8c7";
+    hash = "sha256-l9rwC1ljtt7Q+FYKdQFhtnLJDS8OwMJXIIpZgya0zwU=";
+  };
+
+  vendorHash = "sha256-u4E+b/vChXArovtaZ4LODaINWit86i5K4GyHLR0JSyU=";
+
+  ldflags = [
+    "-s"
+    "-w"
+  ];
+
+  meta = with lib; {
+    description = "Tool for extracting URLs, paths, secrets, and other data from JavaScript source code";
+    homepage = "https://github.com/BishopFox/jsluice";
+    license = licenses.mit;
+    maintainers = with maintainers; [ fab ];
+  };
+}