nixpkgs/pkgs/tools/misc/websocat/default.nix

28 lines
819 B
Nix
Raw Normal View History

2019-12-05 16:40:54 +00:00
{ stdenv, fetchFromGitHub, pkgconfig, openssl, rustPlatform, Security }:
rustPlatform.buildRustPackage rec {
2019-08-31 11:41:23 +00:00
pname = "websocat";
2019-12-05 16:40:54 +00:00
version = "1.5.0";
src = fetchFromGitHub {
2019-12-05 16:40:54 +00:00
owner = "vi";
repo = "websocat";
rev = "v${version}";
sha256 = "1lmra91ahpk4gamhnbdr066hl4vzwfh5i09fbabzdnxcvylbx8zf";
};
2019-06-04 08:28:04 +00:00
cargoBuildFlags = [ "--features=ssl" ];
2019-12-05 16:40:54 +00:00
cargoSha256 = "163kwpahrbb9v88kjkrc0jx2np3c068pspr8rqrm9cb8jyl2njrr";
2019-06-04 08:28:04 +00:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl ] ++ stdenv.lib.optional stdenv.isDarwin Security;
2019-03-19 08:21:18 +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;
maintainers = [ maintainers.thoughtpolice ];
2019-12-05 16:40:54 +00:00
platforms = platforms.all;
};
}