2019-06-04 09:28:04 +01: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-03-10 03:43:27 +00:00
|
|
|
version = "1.3.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vi";
|
|
|
|
repo = "websocat";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1gf2snr12vnx2mhsrwkb5274r1pvdrf8m3bybrqbh8s9wd83nrh6";
|
|
|
|
};
|
|
|
|
|
2019-06-04 09:28:04 +01:00
|
|
|
cargoBuildFlags = [ "--features=ssl" ];
|
2019-05-25 12:03:08 +01:00
|
|
|
cargoSha256 = "1zqfvbihf8xwgh092n9wzm3mdgbv0n99gjsfk9przqj2vh7wfvh2";
|
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)";
|
|
|
|
homepage = https://github.com/vi/websocat;
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = [ maintainers.thoughtpolice ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|