nixpkgs/pkgs/by-name/ss/sshesame/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.0 KiB
Nix
Raw Normal View History

2024-01-05 09:43:05 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
2024-07-02 13:46:53 +00:00
, stdenv
2024-01-05 09:43:05 +00:00
, nix-update-script
}:
buildGoModule rec {
pname = "sshesame";
2024-07-25 08:22:02 +00:00
version = "0.0.38";
2024-01-05 09:43:05 +00:00
src = fetchFromGitHub {
owner = "jaksi";
repo = "sshesame";
rev = "v${version}";
2024-07-25 08:22:02 +00:00
hash = "sha256-CSoDUfbYSf+V7jHVqXGhLc6Mrluy+XbZKCs6IA8reIw=";
2024-01-05 09:43:05 +00:00
};
2024-07-25 08:22:02 +00:00
vendorHash = "sha256-tfxqr1yDXE+ACCfAtZ0xePpB/xktfwJe/xPU8qAVz54=";
2024-01-05 09:43:05 +00:00
ldflags = [ "-s" "-w" ];
2024-07-02 13:46:53 +00:00
hardeningEnable = lib.optionals (!stdenv.isDarwin) [ "pie" ];
2024-01-05 09:43:05 +00:00
passthru.updateScript = nix-update-script { };
meta = {
description = "Easy to set up and use SSH honeypot";
longDescription = ''
A fake SSH server that lets anyone in and logs their activity.
sshesame accepts and logs SSH connections and activity (channels, requests),
without doing anything on the host (e.g. executing commands, making network requests).
'';
homepage = "https://github.com/jaksi/sshesame";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ eclairevoyant ];
mainProgram = "sshesame";
};
}