depot/third_party/nixpkgs/pkgs/tools/networking/rustcat/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

30 lines
678 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "rustcat";
version = "3.0.0";
src = fetchFromGitHub {
owner = "robiot";
repo = pname;
rev = "v${version}";
sha256 = "sha256-/6vNFh7n6WvYerrL8m9sgUKsO2KKj7/f8xc4rzHy9Io=";
};
cargoHash = "sha256-wqoU9UfXDmf7KIHgFif5rZfZY8Zu0SsaMVfwTtXLzHg=";
buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security;
meta = with lib; {
description = "Port listener and reverse shell";
homepage = "https://github.com/robiot/rustcat";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
mainProgram = "rcat";
};
}