about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/networking/httprobe/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/networking/httprobe/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/networking/httprobe/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/networking/httprobe/default.nix b/nixpkgs/pkgs/tools/networking/httprobe/default.nix
new file mode 100644
index 000000000000..8400a7d12d14
--- /dev/null
+++ b/nixpkgs/pkgs/tools/networking/httprobe/default.nix
@@ -0,0 +1,27 @@
+{ lib
+, buildGoModule
+, fetchFromGitHub
+}:
+
+buildGoModule rec {
+  pname = "httprobe";
+  version = "0.2";
+
+  src = fetchFromGitHub {
+    owner = "tomnomnom";
+    repo = "httprobe";
+    rev = "v${version}";
+    hash = "sha256-k/Ev+zpYF+DcnQvMbbRzoJ4co83q3pi/D9T4DhtGR/I=";
+  };
+
+  vendorHash = null;
+
+  ldflags = [ "-s" "-w" ];
+
+  meta = with lib; {
+    description = "Take a list of domains and probe for working HTTP and HTTPS servers";
+    homepage = "https://github.com/tomnomnom/httprobe";
+    license = licenses.mit;
+    maintainers = with maintainers; [ figsoda ];
+  };
+}