25 lines
621 B
Nix
25 lines
621 B
Nix
|
{ lib, fetchFromGitHub, rustPlatform }:
|
||
|
|
||
|
rustPlatform.buildRustPackage rec {
|
||
|
pname = "rshijack";
|
||
|
version = "0.5.2";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "kpcyrd";
|
||
|
repo = pname;
|
||
|
rev = "v${version}";
|
||
|
sha256 = "sha256-vTbjb0tm6jCP9+QWG5R83v31W6RUgSEv96iR37QdnFo=";
|
||
|
};
|
||
|
|
||
|
cargoHash = "sha256-3rDPk+lPRrDrE2iqHAOi7zhyc+xYPXkM9P4Bu0JUL40=";
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "TCP connection hijacker";
|
||
|
homepage = "https://github.com/kpcyrd/rshijack";
|
||
|
license = licenses.gpl3;
|
||
|
maintainers = with maintainers; [ xrelkd ];
|
||
|
platforms = platforms.unix;
|
||
|
mainProgram = "rshijack";
|
||
|
};
|
||
|
}
|