
Clarified in v0.13.12:
* https://github.com/typstyle-rs/typstyle/blob/v0.13.12/CHANGELOG.md?plain=1#L5
* 87ba66c152
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "typstyle";
|
|
version = "0.13.13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "typstyle-rs";
|
|
repo = "typstyle";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-IAKCwKekeFekHBjfdC4pi74SXJzCDFoby3n1Z0Pu5q4=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-7TkL/bYcTFAPvr4gu5XPxcJdIuwpTyZ6aOEj/YB9F4I=";
|
|
|
|
# Disabling tests requiring network access
|
|
checkFlags = [
|
|
"--skip=e2e"
|
|
];
|
|
|
|
nativeInstallCheckInputs = [
|
|
versionCheckHook
|
|
];
|
|
versionCheckProgramArg = "--version";
|
|
doInstallCheck = true;
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
changelog = "https://github.com/typstyle-rs/typstyle/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
description = "Format your typst source code";
|
|
homepage = "https://github.com/typstyle-rs/typstyle";
|
|
license = lib.licenses.asl20;
|
|
mainProgram = "typstyle";
|
|
maintainers = with lib.maintainers; [
|
|
drupol
|
|
prince213
|
|
];
|
|
};
|
|
})
|