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

27 lines
738 B
Nix
Raw Normal View History

2019-03-19 09:21:18 +01:00
{ stdenv, fetchFromGitHub, rustPlatform, Security
}:
rustPlatform.buildRustPackage rec {
name = "websocat-${version}";
version = "1.3.0";
src = fetchFromGitHub {
owner = "vi";
repo = "websocat";
rev = "v${version}";
sha256 = "1gf2snr12vnx2mhsrwkb5274r1pvdrf8m3bybrqbh8s9wd83nrh6";
};
cargoSha256 = "1zqfvbihf8xwgh092n9wzm3mdgbv0n99gjsfk9przqj2vh7wfvh2";
2019-03-19 09:21:18 +01:00
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
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;
};
}