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