File tree Expand file tree Collapse file tree 1 file changed +10
-15
lines changed
pkgs/by-name/sh/shaperglot-cli Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change 22 lib ,
33 fetchFromGitHub ,
44 rustPlatform ,
5- _experimental-update-script-combinators ,
6- unstableGitUpdater ,
5+ versionCheckHook ,
76 nix-update-script ,
87} :
98
109rustPlatform . 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
You can’t perform that action at this time.
0 commit comments