websocat: format with nixfmt
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
{ lib, stdenv, fetchFromGitHub, pkg-config, openssl, rustPlatform, libiconv
|
||||
, Security, makeWrapper, bash }:
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
bash,
|
||||
fetchFromGitHub,
|
||||
libiconv,
|
||||
makeWrapper,
|
||||
openssl,
|
||||
pkg-config,
|
||||
rustPlatform,
|
||||
Security,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "websocat";
|
||||
@@ -14,14 +24,21 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
cargoHash = "sha256-2THUFcaM4niB7YiQiRXJQuaQu02fpgZKPWrejfhmRQ0=";
|
||||
|
||||
nativeBuildInputs = [ pkg-config makeWrapper ];
|
||||
buildInputs = [ openssl ]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv Security ];
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
makeWrapper
|
||||
];
|
||||
buildInputs =
|
||||
[ openssl ]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
libiconv
|
||||
Security
|
||||
];
|
||||
|
||||
buildFeatures = [ "ssl" ];
|
||||
|
||||
# Needed to get openssl-sys to use pkg-config.
|
||||
OPENSSL_NO_VENDOR=1;
|
||||
OPENSSL_NO_VENDOR = 1;
|
||||
|
||||
# The wrapping is required so that the "sh-c" option of websocat works even
|
||||
# if sh is not in the PATH (as can happen, for instance, when websocat is
|
||||
@@ -32,11 +49,14 @@ rustPlatform.buildRustPackage rec {
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/vi/websocat";
|
||||
description = "Command-line client for WebSockets (like netcat/socat)";
|
||||
homepage = "https://github.com/vi/websocat";
|
||||
changelog = "https://github.com/vi/websocat/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ thoughtpolice Br1ght0ne ];
|
||||
maintainers = with maintainers; [
|
||||
thoughtpolice
|
||||
Br1ght0ne
|
||||
];
|
||||
mainProgram = "websocat";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user