From 34cb27edea913897b512d9fa3760613a11c60b2e Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Sun, 12 Apr 2026 12:58:09 +0200 Subject: [PATCH] ocf-resource-agents: enable strictDeps We need a shell in buildInputs to allow the shebangs of many scripts to be patched. --- pkgs/by-name/oc/ocf-resource-agents/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/oc/ocf-resource-agents/package.nix b/pkgs/by-name/oc/ocf-resource-agents/package.nix index 9ff4ced6d42e..cd14babe8bf7 100644 --- a/pkgs/by-name/oc/ocf-resource-agents/package.nix +++ b/pkgs/by-name/oc/ocf-resource-agents/package.nix @@ -8,6 +8,7 @@ fetchFromGitHub, fetchpatch, autoreconfHook, + bashNonInteractive, pkg-config, python3, glib, @@ -47,13 +48,16 @@ let nativeBuildInputs = [ autoreconfHook pkg-config + python3 ]; buildInputs = [ + bashNonInteractive glib - python3 ]; + strictDeps = true; + env.NIX_CFLAGS_COMPILE = toString ( lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ # Needed with GCC 12 but breaks on darwin (with clang) or older gcc