nixpkgs/pkgs/tools/networking/rustcat/default.nix

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

31 lines
667 B
Nix
Raw Normal View History

2021-09-29 12:17:26 +01:00
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "rustcat";
2022-08-16 04:54:56 +01:00
version = "3.0.0";
2021-09-29 12:17:26 +01:00
src = fetchFromGitHub {
owner = "robiot";
repo = pname;
rev = "v${version}";
2022-08-16 04:54:56 +01:00
sha256 = "sha256-/6vNFh7n6WvYerrL8m9sgUKsO2KKj7/f8xc4rzHy9Io=";
2021-09-29 12:17:26 +01:00
};
2022-08-16 04:54:56 +01:00
cargoSha256 = "sha256-wqoU9UfXDmf7KIHgFif5rZfZY8Zu0SsaMVfwTtXLzHg=";
2021-09-29 12:17:26 +01:00
buildInputs = lib.optional stdenv.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";
2021-09-29 12:17:26 +01:00
};
}