From 3a5b0cd35c382155e091409c9418b289d7dc7b85 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 19 Dec 2023 23:55:35 +0100 Subject: [PATCH] terrapin-scanner: init at 1.0.3 Vulnerability scanner for the Terrapin attack https://github.com/RUB-NDS/Terrapin-Scanner --- pkgs/by-name/te/terrapin-scanner/package.nix | 31 ++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pkgs/by-name/te/terrapin-scanner/package.nix diff --git a/pkgs/by-name/te/terrapin-scanner/package.nix b/pkgs/by-name/te/terrapin-scanner/package.nix new file mode 100644 index 000000000000..2ffeec08b280 --- /dev/null +++ b/pkgs/by-name/te/terrapin-scanner/package.nix @@ -0,0 +1,31 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "terrapin-scanner"; + version = "1.0.3"; + + src = fetchFromGitHub { + owner = "RUB-NDS"; + repo = "Terrapin-Scanner"; + rev = "refs/tags/v${version}"; + hash = "sha256-snKEIWhFj+uG/jY1nbq/8T0y2FcAdkIUTf9J2Lz6owo="; + }; + + vendorHash = null; + + ldflags = [ + "-s" + "-w" + ]; + + meta = with lib; { + description = "Vulnerability scanner for the Terrapin attack"; + homepage = "https://github.com/RUB-NDS/Terrapin-Scanner"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + mainProgram = "Terrapin-Scanner"; + }; +}