Skip to content

Commit 025afda

Browse files
committed
audit: disallow bash requirement for lib output
1 parent a9fd61f commit 025afda

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkgs/by-name/au/audit/package.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
fetchFromGitHub,
55
autoreconfHook,
66
bash,
7+
bashNonInteractive,
78
buildPackages,
89
linuxHeaders,
910
python3,
@@ -89,6 +90,14 @@ stdenv.mkDerivation (finalAttrs: {
8990
(if enablePython then "--with-python" else "--without-python")
9091
];
9192

93+
__structuredAttrs = true;
94+
95+
# lib output is part of the mandatory nixos system closure, so avoid bash here
96+
outputChecks.lib.disallowedRequisites = [
97+
bash
98+
bashNonInteractive
99+
];
100+
92101
postInstall = ''
93102
installShellCompletion --bash init.d/audit.bash_completion
94103
'';

0 commit comments

Comments
 (0)