2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
2024-02-07 01:22:34 +00:00
|
|
|
}:
|
2024-09-19 14:19:46 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
buildGoModule rec {
|
2024-02-07 01:22:34 +00:00
|
|
|
pname = "snicat";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.0.1-unstable-2024-09-05";
|
2024-02-07 01:22:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CTFd";
|
|
|
|
repo = "snicat";
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "8c8f06e59d5aedb9a97115a4e0eafa75b17a6cdf";
|
|
|
|
hash = "sha256-71wVth+VzEnGW8ErWmj6XjhNtVpx/q8lViIA71njwqU=";
|
2024-02-07 01:22:34 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
vendorHash = "sha256-27ykI9HK1jFanxwa6QrN6ZS548JbFNSZHaXr4ciCVOE=";
|
|
|
|
proxyVendor = true;
|
2024-02-07 01:22:34 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-X main.version=v${version}"
|
|
|
|
];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/snicat $out/bin/sc
|
2024-02-07 01:22:34 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "TLS & SNI aware netcat";
|
|
|
|
homepage = "https://github.com/CTFd/snicat";
|
|
|
|
license = licenses.asl20;
|
|
|
|
mainProgram = "sc";
|
|
|
|
maintainers = with maintainers; [ felixalbrigtsen ];
|
|
|
|
};
|
|
|
|
}
|