2019-12-05 16:40:54 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, openssl, rustPlatform, Security }:
|
2019-03-10 03:43:27 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 12:41:23 +01:00
|
|
|
pname = "websocat";
|
2019-12-05 16:40:54 +00:00
|
|
|
version = "1.5.0";
|
2019-03-10 03:43:27 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-12-05 16:40:54 +00:00
|
|
|
owner = "vi";
|
|
|
|
repo = "websocat";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1lmra91ahpk4gamhnbdr066hl4vzwfh5i09fbabzdnxcvylbx8zf";
|
2019-03-10 03:43:27 +00:00
|
|
|
};
|
|
|
|
|
2019-06-04 09:28:04 +01:00
|
|
|
cargoBuildFlags = [ "--features=ssl" ];
|
2019-12-05 16:40:54 +00:00
|
|
|
cargoSha256 = "163kwpahrbb9v88kjkrc0jx2np3c068pspr8rqrm9cb8jyl2njrr";
|
2019-03-10 03:43:27 +00:00
|
|
|
|
2019-06-04 09:28:04 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ openssl ] ++ stdenv.lib.optional stdenv.isDarwin Security;
|
2019-03-19 08:21:18 +00:00
|
|
|
|
2019-03-10 03:43:27 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Command-line client for WebSockets (like netcat/socat)";
|
2019-12-05 16:40:54 +00:00
|
|
|
homepage = "https://github.com/vi/websocat";
|
|
|
|
license = licenses.mit;
|
2019-12-05 16:41:12 +00:00
|
|
|
maintainers = with maintainers; [ thoughtpolice filalex77 ];
|
2019-12-05 16:40:54 +00:00
|
|
|
platforms = platforms.all;
|
2019-03-10 03:43:27 +00:00
|
|
|
};
|
|
|
|
}
|