Skip to content

Commit c502194

Browse files
authored
shaperglot-cli: 0-unstable-2025-08-11 -> 1.1.0 (#433132)
2 parents 3449cb1 + 01d301b commit c502194

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

pkgs/by-name/sh/shaperglot-cli/package.nix

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,18 @@
22
lib,
33
fetchFromGitHub,
44
rustPlatform,
5-
_experimental-update-script-combinators,
6-
unstableGitUpdater,
5+
versionCheckHook,
76
nix-update-script,
87
}:
98

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

1413
src = fetchFromGitHub {
1514
owner = "googlefonts";
1615
repo = "shaperglot";
17-
rev = "b7ba56e583e89a1c169f4ef7c3419e4e76e00974";
16+
tag = "v${finalAttrs.version}";
1817
hash = "sha256-XFzsUzHa4KsyDWlOKlWHBNimn1hzdrtCPe+lFrs0EDc=";
1918
};
2019

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

3130
doInstallCheck = true;
31+
nativeInstallCheckInputs = [
32+
versionCheckHook
33+
];
34+
versionCheckProgramArg = "--version";
3235
installCheckPhase = ''
3336
runHook preInstallCheck
3437
@@ -39,22 +42,14 @@ rustPlatform.buildRustPackage (finalAttrs: {
3942
'';
4043

4144
passthru = {
42-
updateScript = _experimental-update-script-combinators.sequence [
43-
(unstableGitUpdater {
44-
branch = "main";
45-
# Git tag differs from CLI version: https://github.com/googlefonts/shaperglot/issues/138
46-
hardcodeZeroVersion = true;
47-
})
48-
(nix-update-script {
49-
# Updating `cargoHash`
50-
extraArgs = [ "--version=skip" ];
51-
})
52-
];
45+
updateScript = nix-update-script { };
5346
};
5447

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

0 commit comments

Comments
 (0)