shaperglot-cli: 0-unstable-2025-08-11 -> 1.1.0 (#433132)

This commit is contained in:
Peder Bergebakken Sundt
2025-08-20 23:32:29 +02:00
committed by GitHub
+10 -15
View File
@@ -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