mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
pre-commit: add gitMinimal to wrapper
git is required for `pre-commit run --all`
This commit is contained in:
parent
bbbba8e23e
commit
bc8121549d
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue