10 stdenv.mkDerivation rec {
14 src = fetchFromGitHub {
18 sha256 = "sha256-bew4GUWYCGiLl8ECdyEmhc42BvUY+f8/6cHDSNE5daM=";
27 grep -rl '/usr/local/lynis' ./ | xargs sed -i "s@/usr/local/lynis@$out/share/lynis@g"
31 install -d $out/bin $out/share/lynis/plugins
32 cp -r include db default.prf $out/share/lynis/
34 wrapProgram "$out/bin/lynis" --prefix PATH : ${lib.makeBinPath [ gawk ]}
36 installManPage lynis.8
37 installShellCompletion --bash --name lynis.bash \
38 extras/bash_completion.d/lynis
42 description = "Security auditing tool for Linux, macOS, and UNIX-based systems";
43 mainProgram = "lynis";
44 homepage = "https://cisofy.com/lynis/";
45 license = licenses.gpl3Only;
46 platforms = platforms.unix;
47 maintainers = [ maintainers.ryneeverett ];