File tree Expand file tree Collapse file tree 1 file changed +31
-24
lines changed Expand file tree Collapse file tree 1 file changed +31
-24
lines changed Original file line number Diff line number Diff line change 1- { lib
2- , rustPlatform
3- , fetchFromGitHub
4- , pkg-config
5- , libgit2
6- , zlib
7- , stdenv
8- , darwin
9- , nix-update-script
10- , testers
11- , typstyle
1+ {
2+ lib ,
3+ rustPlatform ,
4+ fetchFromGitHub ,
5+ pkg-config ,
6+ libgit2 ,
7+ zlib ,
8+ stdenv ,
9+ darwin ,
10+ nix-update-script ,
11+ versionCheckHook ,
1212} :
1313
1414rustPlatform . buildRustPackage rec {
1515 pname = "typstyle" ;
16- version = "0.11.34 " ;
16+ version = "0.11.35 " ;
1717
1818 src = fetchFromGitHub {
1919 owner = "Enter-tainer" ;
2020 repo = "typstyle" ;
2121 rev = "refs/tags/v${ version } " ;
22- hash = "sha256-6z2jzs5PxsEsCPSm9+sZnBdzh0edLMylaLBvSSPoPNo =" ;
22+ hash = "sha256-mPppnbgTXJ4ALIHrI0q9UpwGPDoTGitw5KRY8eA/vJg =" ;
2323 } ;
2424
25- cargoHash = "sha256-MaqsAQvh30nDzoxgnFKu7+wvRZ7WvwLgKYM3Fru8qfg =" ;
25+ cargoHash = "sha256-30xinYXS+OGYE1H0Eutwpjgn3OfFtjTUJInDHvn6/E0 =" ;
2626
2727 nativeBuildInputs = [
2828 pkg-config
2929 ] ;
3030
31- buildInputs = [
32- libgit2
33- zlib
34- ] ++ lib . optionals stdenv . hostPlatform . isDarwin [
35- darwin . apple_sdk . frameworks . CoreFoundation
36- darwin . apple_sdk . frameworks . CoreServices
37- darwin . apple_sdk . frameworks . Security
38- darwin . apple_sdk . frameworks . SystemConfiguration
39- ] ;
31+ buildInputs =
32+ [
33+ libgit2
34+ zlib
35+ ]
36+ ++ lib . optionals stdenv . hostPlatform . isDarwin [
37+ darwin . apple_sdk . frameworks . CoreFoundation
38+ darwin . apple_sdk . frameworks . CoreServices
39+ darwin . apple_sdk . frameworks . Security
40+ darwin . apple_sdk . frameworks . SystemConfiguration
41+ ] ;
4042
4143 # Disabling tests requiring network access
4244 checkFlags = [
4345 "--skip=e2e"
4446 ] ;
4547
48+ nativeInstallCheckInputs = [
49+ versionCheckHook
50+ ] ;
51+ versionCheckProgramArg = [ "--version" ] ;
52+ doInstallCheck = true ;
53+
4654 passthru = {
4755 updateScript = nix-update-script { } ;
48- tests . version = testers . testVersion { package = typstyle ; } ;
4956 } ;
5057
5158 meta = {
You can’t perform that action at this time.
0 commit comments