prek: 0.1.6 -> 0.2.1 (#443004)

This commit is contained in:
Marcus Ramberg
2025-09-16 21:08:25 +00:00
committed by GitHub
+8 -3
View File
@@ -9,16 +9,16 @@
rustPlatform.buildRustPackage (finalAttrs: {
pname = "prek";
version = "0.1.6";
version = "0.2.1";
src = fetchFromGitHub {
owner = "j178";
repo = "prek";
tag = "v${finalAttrs.version}";
hash = "sha256-MVdd67ssP64aEV6rjNA3fxypqKn0lJe/UN2waCEkLJM=";
hash = "sha256-pnAyyCvPCObW5NrMY72XsX5SqcnmIKCrQW5v3nyFCcU=";
};
cargoHash = "sha256-XW8na9kXgn7gKaN7OYlEGTv8cgtzKXggj1uXlvQh4N4=";
cargoHash = "sha256-hSmlWPhR5wt2JIwNnRKX1zkOks5G+SSepIRVTWsu6bo=";
preBuild = ''
version312_str=$(${python312}/bin/python -c 'import sys; print(sys.version_info[:3])')
@@ -61,6 +61,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
# "meta_hooks"
"reuse_env"
"docker::docker"
"docker::workspace_docker"
"docker_image::docker_image"
"pygrep::basic_case_sensitive"
"pygrep::case_insensitive"
@@ -95,6 +96,9 @@ rustPlatform.buildRustPackage (finalAttrs: {
"subdirectory"
"check_yaml_hook"
"check_yaml_multiple_document"
"builtin_hooks_workspace_mode"
"fix_byte_order_marker_hook"
"fix_byte_order_marker"
# does not properly use TMP
"hook_impl"
];
@@ -102,6 +106,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
meta = {
homepage = "https://github.com/j178/prek";
description = "Better `pre-commit`, re-engineered in Rust ";
mainProgram = "prek";
changelog = "https://github.com/j178/prek/releases/tag/${finalAttrs.src.tag}";
license = [ lib.licenses.mit ];
maintainers = [ lib.maintainers.knl ];