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
48
pkgs/applications/networking/testssl/default.nix
Normal file
48
pkgs/applications/networking/testssl/default.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{ stdenv, fetchFromGitHub, makeWrapper, lib
|
||||
, dnsutils, coreutils, openssl, nettools, util-linux, procps }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "testssl.sh";
|
||||
version = "3.0.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "drwetter";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-SZfGiKSbLq81YdDMgG0C6LC/nE5NApqeWK/PqDzQNBU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [
|
||||
coreutils # for printf
|
||||
dnsutils # for dig
|
||||
nettools # for hostname
|
||||
openssl # for openssl
|
||||
procps # for ps
|
||||
util-linux # for hexdump
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace testssl.sh \
|
||||
--replace TESTSSL_INSTALL_DIR:-\"\" TESTSSL_INSTALL_DIR:-\"$out\" \
|
||||
--replace PROG_NAME=\"\$\(basename\ \"\$0\"\)\" PROG_NAME=\"testssl.sh\"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -D testssl.sh $out/bin/testssl.sh
|
||||
cp -r etc $out
|
||||
|
||||
wrapProgram $out/bin/testssl.sh --prefix PATH ':' ${lib.makeBinPath buildInputs}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "CLI tool to check a server's TLS/SSL capabilities";
|
||||
longDescription = ''
|
||||
CLI tool which checks a server's service on any port for the support of
|
||||
TLS/SSL ciphers, protocols as well as recent cryptographic flaws and more.
|
||||
'';
|
||||
homepage = "https://testssl.sh/";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ etu ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue