pre-commit: add gitMinimal to wrapper

git is required for `pre-commit run --all`
This commit is contained in:
FliegendeWurst 2025-05-03 18:04:32 +02:00 committed by Bjørn Forsman
parent bbbba8e23e
commit bc8121549d

View file

@ -197,6 +197,11 @@ buildPythonApplication rec {
"pre_commit"
];
# add gitMinimal as fallback, if git is not installed
preFixup = ''
makeWrapperArgs+=(--suffix PATH : ${lib.makeBinPath [ gitMinimal ]})
'';
passthru.tests = callPackage ./tests.nix {
inherit gitMinimal pre-commit;
};