uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
41
pkgs/tools/misc/websocat/default.nix
Normal file
41
pkgs/tools/misc/websocat/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ lib, stdenv, fetchFromGitHub, pkg-config, openssl, rustPlatform, libiconv
|
||||
, Security, makeWrapper, bash }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "websocat";
|
||||
version = "1.9.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vi";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-aQWLsdYHmju7tCJfg3a1aOlFYui7qsQ8vJfhyMawXWo=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-b/B+K/LMP1XK1QEtFKY4nmy2fAqEmLTN+qL+XlrqA5w=";
|
||||
|
||||
nativeBuildInputs = [ pkg-config makeWrapper ];
|
||||
buildInputs = [ openssl ]
|
||||
++ lib.optionals stdenv.isDarwin [ libiconv Security ];
|
||||
|
||||
buildFeatures = [ "ssl" ];
|
||||
|
||||
# Needed to get openssl-sys to use pkg-config.
|
||||
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
|
||||
# started as a systemd service).
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/websocat \
|
||||
--prefix PATH : ${lib.makeBinPath [ bash ]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/vi/websocat";
|
||||
description = "Command-line client for WebSockets (like netcat/socat)";
|
||||
changelog = "https://github.com/vi/websocat/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ thoughtpolice Br1ght0ne ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue