mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
18 lines
618 B
Diff
18 lines
618 B
Diff
diff --git a/pre_commit/resources/hook-tmpl b/pre_commit/resources/hook-tmpl
|
|
index 53d29f9..9b5dc2c 100755
|
|
--- a/pre_commit/resources/hook-tmpl
|
|
+++ b/pre_commit/resources/hook-tmpl
|
|
@@ -10,11 +10,4 @@ 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
|
|
- exec pre-commit "${ARGS[@]}"
|
|
-else
|
|
- echo '`pre-commit` not found. Did you forget to activate your virtualenv?' 1>&2
|
|
- exit 1
|
|
-fi
|
|
+exec @pre-commit@/bin/pre-commit "${ARGS[@]}"
|