git: use finalAttrs for doInstallCheck config

For easier overriding with `git.override` or `git.overrideAttrs`,
determine whether configuration related to running the install checks is
present based on whether the install checks are actually being run, not
on the function argument which may not be the same.
This commit is contained in:
Adam Dinwoodie
2026-05-30 16:36:30 +01:00
parent f9d8b65950
commit d01101d8e2
+1 -1
View File
@@ -157,7 +157,7 @@ stdenv.mkDerivation (finalAttrs: {
substituteInPlace contrib/credential/libsecret/Makefile \
--replace-fail 'pkg-config' "$PKG_CONFIG"
''
+ lib.optionalString doInstallCheck ''
+ lib.optionalString finalAttrs.doInstallCheck ''
# ensure we are using the correct shell when executing the test scripts
patchShebangs t/*.sh
''