diff options
author | volth <volth@webmaster.ms> | 2019-06-04 08:28:04 +0000 |
---|---|---|
committer | Austin Seipp <aseipp@pobox.com> | 2019-06-04 16:53:54 -0500 |
commit | 51f4e7502516d6d42841f0b78da0c138a88d8a8d (patch) | |
tree | 7d4ecd77ca3b0b1ed6c21fc980a9a8300179424c /pkgs/tools/misc/websocat | |
parent | 6500ab9e612e57ffc45c4a1ea2ea4aa9d82fe5db (diff) |
websocat: add support for wss://
Diffstat (limited to 'pkgs/tools/misc/websocat')
-rw-r--r-- | pkgs/tools/misc/websocat/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/tools/misc/websocat/default.nix b/pkgs/tools/misc/websocat/default.nix index 48983fc85e135..a276b13a59ca8 100644 --- a/pkgs/tools/misc/websocat/default.nix +++ b/pkgs/tools/misc/websocat/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, rustPlatform, Security +{ stdenv, fetchFromGitHub, pkgconfig, openssl, rustPlatform, Security }: rustPlatform.buildRustPackage rec { @@ -12,9 +12,11 @@ rustPlatform.buildRustPackage rec { sha256 = "1gf2snr12vnx2mhsrwkb5274r1pvdrf8m3bybrqbh8s9wd83nrh6"; }; + cargoBuildFlags = [ "--features=ssl" ]; cargoSha256 = "1zqfvbihf8xwgh092n9wzm3mdgbv0n99gjsfk9przqj2vh7wfvh2"; - buildInputs = stdenv.lib.optional stdenv.isDarwin Security; + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ openssl ] ++ stdenv.lib.optional stdenv.isDarwin Security; meta = with stdenv.lib; { description = "Command-line client for WebSockets (like netcat/socat)"; |