uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
15
pkgs/tools/misc/pre-commit/hook-tmpl.patch
Normal file
15
pkgs/tools/misc/pre-commit/hook-tmpl.patch
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
diff --git a/pre_commit/resources/hook-tmpl b/pre_commit/resources/hook-tmpl
|
||||
index 53d29f9..66a8ad3 100755
|
||||
--- a/pre_commit/resources/hook-tmpl
|
||||
+++ b/pre_commit/resources/hook-tmpl
|
||||
@@ -10,9 +10,7 @@ ARGS=(hook-impl)
|
||||
HERE="$(cd "$(dirname "$0")" && pwd)"
|
||||
ARGS+=(--hook-dir "$HERE" -- "$@")
|
||||
|
||||
-if [ -x "$INSTALL_PYTHON" ]; then
|
||||
- exec "$INSTALL_PYTHON" -mpre_commit "${ARGS[@]}"
|
||||
-elif command -v pre-commit > /dev/null; then
|
||||
+if command -v pre-commit > /dev/null; then
|
||||
exec pre-commit "${ARGS[@]}"
|
||||
else
|
||||
echo '`pre-commit` not found. Did you forget to activate your virtualenv?' 1>&2
|
||||
Loading…
Add table
Add a link
Reference in a new issue