2024-03-21 19:33:39 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2023-07-16 02:21:49 +00:00
|
|
|
|
2023-08-29 12:52:30 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2023-07-16 02:21:49 +00:00
|
|
|
pname = "typstfmt";
|
2024-03-21 19:33:39 +00:00
|
|
|
version = "0.2.9";
|
2023-07-16 02:21:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "astrale-sharp";
|
|
|
|
repo = "typstfmt";
|
2023-08-29 12:52:30 +00:00
|
|
|
rev = version;
|
2024-03-21 19:33:39 +00:00
|
|
|
hash = "sha256-bSjUr6tHQrmni/YmApHrvY2cVz3xf1VKfg35BJjuOZM=";
|
2023-07-16 02:21:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
2024-03-21 19:33:39 +00:00
|
|
|
"typst-syntax-0.10.0" = "sha256-qiskc0G/ZdLRZjTicoKIOztRFem59TM4ki23Rl55y9s=";
|
2023-07-16 02:21:49 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-03-21 19:33:39 +00:00
|
|
|
meta = {
|
|
|
|
changelog = "https://github.com/astrale-sharp/typstfmt/blob/${src.rev}/CHANGELOG.md";
|
2023-07-16 02:21:49 +00:00
|
|
|
description = "Formatter for the Typst language";
|
|
|
|
homepage = "https://github.com/astrale-sharp/typstfmt";
|
2024-03-21 19:33:39 +00:00
|
|
|
license = lib.licenses.mit;
|
2023-11-23 02:51:17 +00:00
|
|
|
mainProgram = "typstfmt";
|
2024-03-21 19:33:39 +00:00
|
|
|
maintainers = with lib.maintainers; [ figsoda geri1701 ];
|
2023-07-16 02:21:49 +00:00
|
|
|
};
|
|
|
|
}
|