nixpkgs/pkgs/tools/misc/websocat/default.nix
Benjamin Hipple eb11feaa0b treewide: change fetchCargoTarball default to opt-out
Changes the default fetcher in the Rust Platform to be the newer
`fetchCargoTarball`, and changes every application using the current default to
instead opt out.

This commit does not change any hashes or cause any rebuilds. Once integrated,
we will start deleting the opt-outs and recomputing hashes.

See #79975 for details.
2020-02-13 22:41:37 -08:00

31 lines
920 B
Nix

{ stdenv, fetchFromGitHub, pkgconfig, openssl, rustPlatform, Security }:
rustPlatform.buildRustPackage rec {
pname = "websocat";
version = "1.5.0";
src = fetchFromGitHub {
owner = "vi";
repo = "websocat";
rev = "v${version}";
sha256 = "1lmra91ahpk4gamhnbdr066hl4vzwfh5i09fbabzdnxcvylbx8zf";
};
cargoBuildFlags = [ "--features=ssl" ];
# Delete this on next update; see #79975 for details
legacyCargoFetcher = true;
cargoSha256 = "163kwpahrbb9v88kjkrc0jx2np3c068pspr8rqrm9cb8jyl2njrr";
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl ] ++ 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 = licenses.mit;
maintainers = with maintainers; [ thoughtpolice filalex77 ];
platforms = platforms.all;
};
}