autocorrect: 2.14.0 -> 2.14.1, add definfo as maintainer (#421070)

This commit is contained in:
Franz Pletz
2025-06-30 19:15:09 +02:00
committed by GitHub
3 changed files with 9 additions and 2971 deletions
File diff suppressed because it is too large Load Diff
+9 -16
View File
@@ -4,24 +4,19 @@
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "autocorrect";
version = "2.14.0";
version = "2.14.1";
src = fetchFromGitHub {
owner = "huacnlee";
repo = "autocorrect";
rev = "v${version}";
sha256 = "sha256-Tqg0awxRtzqAVTTVrmN0RDTQvYJllejx8V94jTreZyI=";
rev = "5af1bc295d48b0fd04f7dbc35ea99d479f682e78";
hash = "sha256-tbN+48a8NnwirJqUci0LgxsvJI0KzuG/aDvV/Yr8Xu8=";
};
cargoLock = {
lockFile = ./Cargo.lock;
};
postPatch = ''
cp ${./Cargo.lock} Cargo.lock
'';
useFetchCargoVendor = true;
cargoHash = "sha256-cEiIs7wvfjP5/tkRtYb2XEZfssw09zkbOrqZsOX9ajQ=";
cargoBuildFlags = [
"-p"
@@ -32,14 +27,12 @@ rustPlatform.buildRustPackage rec {
"autocorrect-cli"
];
passthru.updateScript = ./update.sh;
meta = {
description = "Linter and formatter for help you improve copywriting, to correct spaces, punctuations between CJK (Chinese, Japanese, Korean)";
mainProgram = "autocorrect";
homepage = "https://huacnlee.github.io/autocorrect";
changelog = "https://github.com/huacnlee/autocorrect/releases/tag/v${version}";
changelog = "https://github.com/huacnlee/autocorrect/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
maintainers = with lib.maintainers; [ definfo ];
};
}
})
-15
View File
@@ -1,15 +0,0 @@
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p coreutils curl jq common-updater-scripts cargo
# shellcheck shell=bash
set -euo pipefail
version=$(curl -s https://api.github.com/repos/huacnlee/autocorrect/releases/latest | jq -r .tag_name)
update-source-version autocorrect "${version#v}"
tmp=$(mktemp -d)
trap 'rm -rf -- "${tmp}"' EXIT
git clone --depth 1 --branch "${version}" https://github.com/huacnlee/autocorrect.git "${tmp}/autocorrect"
cargo generate-lockfile --manifest-path "${tmp}/autocorrect/Cargo.toml"
cp "${tmp}/autocorrect/Cargo.lock" "$(dirname "$0")/Cargo.lock"