diff options
author | Nick Cao <nickcao@nichi.co> | 2024-01-28 20:33:42 -0500 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2024-01-31 19:50:05 +0100 |
commit | 1b391ffbd548dc76d53859b62ec285ffc9e2b94e (patch) | |
tree | 91a50cd0340f304cc8753581c184d64643d9781e /pkgs | |
parent | 6c9f27ab9aa717ead9a988dece2ab40862458113 (diff) |
testers.hasPkgConfigModules: use PKG_CONFIG envvar instead of hardcoding
fixes cross compilation
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/build-support/testers/hasPkgConfigModules/tester.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/testers/hasPkgConfigModules/tester.nix b/pkgs/build-support/testers/hasPkgConfigModules/tester.nix index 137739a1b48a5..bbcc4f0c0f710 100644 --- a/pkgs/build-support/testers/hasPkgConfigModules/tester.nix +++ b/pkgs/build-support/testers/hasPkgConfigModules/tester.nix @@ -34,7 +34,7 @@ runCommand testName { for moduleName in $moduleNames; do echo "checking pkg-config module $moduleName in $buildInputs" set +e - version="$(pkg-config --modversion $moduleName)" + version="$($PKG_CONFIG --modversion $moduleName)" r=$? set -e if [[ $r = 0 ]]; then @@ -42,7 +42,7 @@ runCommand testName { printf '%s\t%s\n' "$moduleName" "$version" >> "$out" else echo "These modules were available in the input propagation closure:" - pkg-config --list-all + $PKG_CONFIG --list-all echo "❌ pkg-config module $moduleName was not found" false fi |