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

30 lines
641 B
Nix
Raw Normal View History

2021-09-29 13:17:26 +02:00
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "rustcat";
2021-10-02 20:39:50 +02:00
version = "2.0.0";
2021-09-29 13:17:26 +02:00
src = fetchFromGitHub {
owner = "robiot";
repo = pname;
rev = "v${version}";
2021-10-02 20:39:50 +02:00
sha256 = "sha256-aoeinz1XVJ+MNt8ndV/HnKLdwa7rXwxIZucCkZCnNaM=";
2021-09-29 13:17:26 +02:00
};
2021-10-02 20:39:50 +02:00
cargoSha256 = "sha256-cQxBM8m0sy9WKvKqyY/sNE3p4l2v9zdx80mReQEAoc8=";
2021-09-29 13:17:26 +02: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 ];
};
}