about summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-09-29 13:17:26 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-09-29 13:17:26 +0200
commit07ebe7baabc66db71f7b1f9e337e561116c1b00b (patch)
treebbfac823396a30169f4e1f2c325689c78a61f245 /pkgs/tools
parent7c1a58a6300663f28bf6ee9835eeb607d648239c (diff)
rustcat: init at 1.3.0
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/networking/rustcat/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/networking/rustcat/default.nix b/pkgs/tools/networking/rustcat/default.nix
new file mode 100644
index 0000000000000..f35a91722f030
--- /dev/null
+++ b/pkgs/tools/networking/rustcat/default.nix
@@ -0,0 +1,29 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, rustPlatform
+, Security
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "rustcat";
+  version = "1.3.0";
+
+  src = fetchFromGitHub {
+    owner = "robiot";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "0f4g0fk3i9p403r21w1cdz4r9778pkz58y8h7w2fmj27bamsyfhb";
+  };
+
+  cargoSha256 = "0zlgnnlnglix0qrjc5v0g91v083lm20iw1fhvjpvjlfq7shdkhyd";
+
+  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 ];
+  };
+}