From 4a622549c7f8235ff182ea0f6ea97b273685d303 Mon Sep 17 00:00:00 2001 From: R-VdP <141248+R-VdP@users.noreply.github.com> Date: Sun, 26 Feb 2023 16:11:12 +0100 Subject: [PATCH] Resolve pkexec from PATH by default. --- pkgs/tools/misc/coreboot-configurator/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/misc/coreboot-configurator/default.nix b/pkgs/tools/misc/coreboot-configurator/default.nix index 4f036d526ac..87c4573e95e 100644 --- a/pkgs/tools/misc/coreboot-configurator/default.nix +++ b/pkgs/tools/misc/coreboot-configurator/default.nix @@ -5,8 +5,12 @@ , meson , mkDerivation , ninja + # We will resolve pkexec from the path because it has a setuid wrapper on + # NixOS meaning that we cannot just use the path from the nix store. + # Using the path to the wrapper here would make the package incompatible + # with non-NixOS systems. +, pkexecPath ? "pkexec" , pkg-config -, pkexecPath ? "/run/wrappers/bin/pkexec" , yaml-cpp , nvramtool , systemd