From 025afda8d8ea5076e8ade471dfd476a7ff33cb82 Mon Sep 17 00:00:00 2001 From: Grimmauld Date: Sun, 3 Aug 2025 21:23:44 +0200 Subject: [PATCH] audit: disallow bash requirement for lib output --- pkgs/by-name/au/audit/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/au/audit/package.nix b/pkgs/by-name/au/audit/package.nix index bae6e65ee2b8..e33b1116c061 100644 --- a/pkgs/by-name/au/audit/package.nix +++ b/pkgs/by-name/au/audit/package.nix @@ -4,6 +4,7 @@ fetchFromGitHub, autoreconfHook, bash, + bashNonInteractive, buildPackages, linuxHeaders, python3, @@ -89,6 +90,14 @@ stdenv.mkDerivation (finalAttrs: { (if enablePython then "--with-python" else "--without-python") ]; + __structuredAttrs = true; + + # lib output is part of the mandatory nixos system closure, so avoid bash here + outputChecks.lib.disallowedRequisites = [ + bash + bashNonInteractive + ]; + postInstall = '' installShellCompletion --bash init.d/audit.bash_completion ''; -- knotmirror 0.0.1