prek: 0.2.4 -> 0.2.11
The link to changelogs is here: - https://github.com/j178/prek/releases/tag/v0.2.11 - https://github.com/j178/prek/releases/tag/v0.2.10 - https://github.com/j178/prek/releases/tag/v0.2.9 - https://github.com/j178/prek/releases/tag/v0.2.8 - https://github.com/j178/prek/releases/tag/v0.2.5 This fixes the issue with prek raised in https://github.com/NixOS/nixpkgs/issues/455265. The tarmagedon issue in prek was fixed with https://github.com/j178/prek/pull/952
This commit is contained in:
@@ -9,16 +9,16 @@
|
|||||||
|
|
||||||
rustPlatform.buildRustPackage (finalAttrs: {
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
pname = "prek";
|
pname = "prek";
|
||||||
version = "0.2.4";
|
version = "0.2.11";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "j178";
|
owner = "j178";
|
||||||
repo = "prek";
|
repo = "prek";
|
||||||
tag = "v${finalAttrs.version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-XvNvVWEmJpsY2AxTYLT0/4IiJ2QTI4mWwDleMmZ2LgA=";
|
hash = "sha256-wzbvofNOAtqbjO5//ECu1FeZrS0FyDvFZPKxC0fOJnE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoHash = "sha256-PDYCO1ggKwtMR9tnokY7JqVM03FWsO4c2L4GV+7TKu4=";
|
cargoHash = "sha256-KVGdAPyUlPCgcx1DpZbfNRNmALdJvzOcsv3WQy3Q7OI=";
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
version312_str=$(${python312}/bin/python -c 'import sys; print(sys.version_info[:3])')
|
version312_str=$(${python312}/bin/python -c 'import sys; print(sys.version_info[:3])')
|
||||||
@@ -38,6 +38,13 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
|||||||
export TMP=$TEMP
|
export TMP=$TEMP
|
||||||
export TMPDIR=$TEMP
|
export TMPDIR=$TEMP
|
||||||
export PREK_INTERNAL__TEST_DIR=$TEMP
|
export PREK_INTERNAL__TEST_DIR=$TEMP
|
||||||
|
|
||||||
|
export UV_PROJECT_ENVIRONMENT="$(mktemp -d)"
|
||||||
|
cleanup() {
|
||||||
|
rm -rf "$UV_PROJECT_ENVIRONMENT"
|
||||||
|
rm -rf "$TEMP"
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
'';
|
'';
|
||||||
|
|
||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
@@ -58,6 +65,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
|||||||
"node"
|
"node"
|
||||||
"script"
|
"script"
|
||||||
"check_useless_excludes_remote"
|
"check_useless_excludes_remote"
|
||||||
|
"run_worktree"
|
||||||
# "meta_hooks"
|
# "meta_hooks"
|
||||||
"reuse_env"
|
"reuse_env"
|
||||||
"docker::docker"
|
"docker::docker"
|
||||||
@@ -99,8 +107,28 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
|||||||
"builtin_hooks_workspace_mode"
|
"builtin_hooks_workspace_mode"
|
||||||
"fix_byte_order_marker_hook"
|
"fix_byte_order_marker_hook"
|
||||||
"fix_byte_order_marker"
|
"fix_byte_order_marker"
|
||||||
|
"check_merge_conflict_hook"
|
||||||
|
"check_merge_conflict_without_assume_flag"
|
||||||
|
"check_symlinks_hook_unix"
|
||||||
|
"check_xml_hook"
|
||||||
|
"check_xml_with_features"
|
||||||
|
"detect_private_key_hook"
|
||||||
|
"no_commit_to_branch_hook"
|
||||||
|
"no_commit_to_branch_hook_with_custom_branches"
|
||||||
|
"no_commit_to_branch_hook_with_patterns"
|
||||||
# does not properly use TMP
|
# does not properly use TMP
|
||||||
"hook_impl"
|
"hook_impl"
|
||||||
|
# problems with environment
|
||||||
|
"try_repo_specific_hook"
|
||||||
|
"try_repo_specific_rev"
|
||||||
|
# lua path is hardcoded
|
||||||
|
"lua::additional_dependencies"
|
||||||
|
"lua::health_check"
|
||||||
|
"lua::hook_stderr"
|
||||||
|
"lua::lua_environment"
|
||||||
|
"lua::remote_hook"
|
||||||
|
# error message differs
|
||||||
|
"run_in_non_git_repo"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|||||||
Reference in New Issue
Block a user