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
38
pkgs/tools/security/lynis/default.nix
Normal file
38
pkgs/tools/security/lynis/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib, stdenv, makeWrapper, fetchFromGitHub, gawk, installShellFiles }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "lynis";
|
||||
version = "3.0.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "CISOfy";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-fPQX/Iz+dc3nF3xMPt0bek4JC2XSHe4aC4O0tZwLf6Y=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ installShellFiles makeWrapper ];
|
||||
|
||||
postPatch = ''
|
||||
grep -rl '/usr/local/lynis' ./ | xargs sed -i "s@/usr/local/lynis@$out/share/lynis@g"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -d $out/bin $out/share/lynis/plugins
|
||||
cp -r include db default.prf $out/share/lynis/
|
||||
cp -a lynis $out/bin
|
||||
wrapProgram "$out/bin/lynis" --prefix PATH : ${lib.makeBinPath [ gawk ]}
|
||||
|
||||
installManPage lynis.8
|
||||
installShellCompletion --bash --name lynis.bash \
|
||||
extras/bash_completion.d/lynis
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Security auditing tool for Linux, macOS, and UNIX-based systems";
|
||||
homepage = "https://cisofy.com/lynis/";
|
||||
license = licenses.gpl3Only;
|
||||
platforms = platforms.unix;
|
||||
maintainers = [ maintainers.ryneeverett ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue