Unverified Commit 90dcc7c1 authored by Franz Pletz's avatar Franz Pletz Committed by GitHub
Browse files

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

parents ce557ce4 0f53b015
Loading
Loading
Loading
Loading
+0 −2940

File deleted.

Preview size limit exceeded, changes collapsed.

+9 −16
Original line number Diff line number Diff line
@@ -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 ];
  };
}
})
+0 −15
Original line number Diff line number Diff line
#! /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"