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

28 lines
835 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 12:41:23 +01: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 09:28:04 +01:00
cargoBuildFlags = [ "--features=ssl" ];
cargoSha256 = "09chj0bgf4r8v5cjq0hvb84zvh98nrzrh1m0wdqjy5gi7zc30cis";
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
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;
};
}