pre-commit: add gitMinimal to wrapper
git is required for `pre-commit run --all`
This commit is contained in:
parent
bbbba8e23e
commit
bc8121549d
@ -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;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user