diff --git a/pkgs/tools/misc/websocat/default.nix b/pkgs/tools/misc/websocat/default.nix new file mode 100644 index 000000000000..2e91c5c3b63a --- /dev/null +++ b/pkgs/tools/misc/websocat/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchFromGitHub, rustPlatform +}: + +rustPlatform.buildRustPackage rec { + name = "websocat-${version}"; + version = "1.3.0"; + + src = fetchFromGitHub { + owner = "vi"; + repo = "websocat"; + rev = "v${version}"; + sha256 = "1gf2snr12vnx2mhsrwkb5274r1pvdrf8m3bybrqbh8s9wd83nrh6"; + }; + + cargoSha256 = "0vkb3jmyb3zg3xiig5vlxhh74m27rvqbkgrwdqzprifn9vcj17ir"; + + meta = with stdenv.lib; { + description = "Command-line client for WebSockets (like netcat/socat)"; + homepage = https://github.com/vi/websocat; + license = with licenses; [ mit ]; + maintainers = [ maintainers.thoughtpolice ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f0cf3c6b16c0..30f875dd6925 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22463,6 +22463,8 @@ in inherit (darwin.apple_sdk.frameworks) Security; }; + websocat = callPackage ../tools/misc/websocat { }; + epkowa = callPackage ../misc/drivers/epkowa { }; idsk = callPackage ../tools/filesystems/idsk { };