nixpkgs/pkgs/tools/security/sslscan/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

31 lines
745 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, openssl
}:
stdenv.mkDerivation rec {
pname = "sslscan";
version = "2.1.3";
src = fetchFromGitHub {
owner = "rbsec";
repo = "sslscan";
rev = "refs/tags/${version}";
hash = "sha256-oLlMeFVicDwr2XjCX/0cBMTXLKB8js50646uAf3tP9k=";
};
buildInputs = [ openssl ];
makeFlags = [ "PREFIX=$(out)" "CC=${stdenv.cc.targetPrefix}cc" ];
meta = with lib; {
description = "Tests SSL/TLS services and discover supported cipher suites";
mainProgram = "sslscan";
homepage = "https://github.com/rbsec/sslscan";
changelog = "https://github.com/rbsec/sslscan/blob/${version}/Changelog";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fpletz globin ];
};
}