Unverified Commit 01d301b7 authored by Kenichi Kamiya's avatar Kenichi Kamiya
Browse files

shaperglot-cli: 0-unstable-2025-08-11 -> 1.1.0

- Switch to a stable version now that the upstream git tag and CLI
  version are synchronized.
  ref: https://github.com/googlefonts/shaperglot/commit/69add91ca4c6306cae5497e93c8ad96d7c2f83be

- The current git revision is the same as 1.1.0, so the source hash
  is unchanged.
parent 695d5db1
Loading
Loading
Loading
Loading
+10 −15
Original line number Diff line number Diff line
@@ -2,19 +2,18 @@
  lib,
  fetchFromGitHub,
  rustPlatform,
  _experimental-update-script-combinators,
  unstableGitUpdater,
  versionCheckHook,
  nix-update-script,
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "shaperglot-cli";
  version = "0-unstable-2025-08-11";
  version = "1.1.0";

  src = fetchFromGitHub {
    owner = "googlefonts";
    repo = "shaperglot";
    rev = "b7ba56e583e89a1c169f4ef7c3419e4e76e00974";
    tag = "v${finalAttrs.version}";
    hash = "sha256-XFzsUzHa4KsyDWlOKlWHBNimn1hzdrtCPe+lFrs0EDc=";
  };

@@ -29,6 +28,10 @@ rustPlatform.buildRustPackage (finalAttrs: {
  ];

  doInstallCheck = true;
  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  versionCheckProgramArg = "--version";
  installCheckPhase = ''
    runHook preInstallCheck

@@ -39,22 +42,14 @@ rustPlatform.buildRustPackage (finalAttrs: {
  '';

  passthru = {
    updateScript = _experimental-update-script-combinators.sequence [
      (unstableGitUpdater {
        branch = "main";
        # Git tag differs from CLI version: https://github.com/googlefonts/shaperglot/issues/138
        hardcodeZeroVersion = true;
      })
      (nix-update-script {
        # Updating `cargoHash`
        extraArgs = [ "--version=skip" ];
      })
    ];
    updateScript = nix-update-script { };
  };

  meta = {
    description = "Test font files for language support";
    homepage = "https://github.com/googlefonts/shaperglot";
    # The CHANGELOG.md file exists in this repository but is not actually used.
    changelog = "https://github.com/googlefonts/shaperglot/releases/tag/v${finalAttrs.version}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [
      kachick