nixpkgs/pkgs/by-name/ty/typstfmt/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
802 B
Nix
Raw Normal View History

2024-03-21 19:33:39 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "typstfmt";
2024-03-21 19:33:39 +00:00
version = "0.2.9";
src = fetchFromGitHub {
owner = "astrale-sharp";
repo = "typstfmt";
rev = version;
2024-03-21 19:33:39 +00:00
hash = "sha256-bSjUr6tHQrmni/YmApHrvY2cVz3xf1VKfg35BJjuOZM=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
2024-03-21 19:33:39 +00:00
"typst-syntax-0.10.0" = "sha256-qiskc0G/ZdLRZjTicoKIOztRFem59TM4ki23Rl55y9s=";
};
};
2024-03-21 19:33:39 +00:00
meta = {
changelog = "https://github.com/astrale-sharp/typstfmt/blob/${src.rev}/CHANGELOG.md";
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 ];
};
}