lol

rustcat: refactor (#361401)

authored by

Fabian Affolter and committed by
GitHub
6964ded4 45e94617

+39 -34
+39
pkgs/by-name/ru/rustcat/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + darwin, 5 + fetchFromGitHub, 6 + rustPlatform, 7 + versionCheckHook, 8 + }: 9 + 10 + rustPlatform.buildRustPackage rec { 11 + pname = "rustcat"; 12 + version = "3.0.0"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "robiot"; 16 + repo = "rustcat"; 17 + rev = "refs/tags/v${version}"; 18 + hash = "sha256-/6vNFh7n6WvYerrL8m9sgUKsO2KKj7/f8xc4rzHy9Io="; 19 + }; 20 + 21 + cargoHash = "sha256-wqoU9UfXDmf7KIHgFif5rZfZY8Zu0SsaMVfwTtXLzHg="; 22 + 23 + buildInputs = lib.optional stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ]; 24 + 25 + nativeInstallCheckInputs = [ versionCheckHook ]; 26 + 27 + doInstallCheck = true; 28 + 29 + versionCheckProgram = [ "${placeholder "out"}/bin/rcat" ]; 30 + 31 + meta = with lib; { 32 + description = "Port listener and reverse shell"; 33 + homepage = "https://github.com/robiot/rustcat"; 34 + changelog = "https://github.com/robiot/rustcat/releases/tag/v${version}"; 35 + license = licenses.mit; 36 + maintainers = with maintainers; [ fab ]; 37 + mainProgram = "rcat"; 38 + }; 39 + }
-30
pkgs/tools/networking/rustcat/default.nix
··· 1 - { lib 2 - , stdenv 3 - , fetchFromGitHub 4 - , rustPlatform 5 - , Security 6 - }: 7 - 8 - rustPlatform.buildRustPackage rec { 9 - pname = "rustcat"; 10 - version = "3.0.0"; 11 - 12 - src = fetchFromGitHub { 13 - owner = "robiot"; 14 - repo = pname; 15 - rev = "v${version}"; 16 - sha256 = "sha256-/6vNFh7n6WvYerrL8m9sgUKsO2KKj7/f8xc4rzHy9Io="; 17 - }; 18 - 19 - cargoHash = "sha256-wqoU9UfXDmf7KIHgFif5rZfZY8Zu0SsaMVfwTtXLzHg="; 20 - 21 - buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security; 22 - 23 - meta = with lib; { 24 - description = "Port listener and reverse shell"; 25 - homepage = "https://github.com/robiot/rustcat"; 26 - license = licenses.mit; 27 - maintainers = with maintainers; [ fab ]; 28 - mainProgram = "rcat"; 29 - }; 30 - }
-4
pkgs/top-level/all-packages.nix
··· 5152 5152 inherit (darwin.apple_sdk.frameworks) Security; 5153 5153 }; 5154 5154 5155 - rustcat = callPackage ../tools/networking/rustcat { 5156 - inherit (darwin.apple_sdk.frameworks) Security; 5157 - }; 5158 - 5159 5155 rustscan = callPackage ../tools/security/rustscan { 5160 5156 inherit (darwin.apple_sdk.frameworks) Security; 5161 5157 };