diff options
Diffstat (limited to 'nixpkgs/pkgs/by-name/ty/typstfmt/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/ty/typstfmt/package.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/ty/typstfmt/package.nix b/nixpkgs/pkgs/by-name/ty/typstfmt/package.nix new file mode 100644 index 000000000000..25816151d583 --- /dev/null +++ b/nixpkgs/pkgs/by-name/ty/typstfmt/package.nix @@ -0,0 +1,32 @@ +{ lib +, rustPlatform +, fetchFromGitHub +}: + +rustPlatform.buildRustPackage rec { + pname = "typstfmt"; + version = "0.2.9"; + + src = fetchFromGitHub { + owner = "astrale-sharp"; + repo = "typstfmt"; + rev = version; + hash = "sha256-bSjUr6tHQrmni/YmApHrvY2cVz3xf1VKfg35BJjuOZM="; + }; + + cargoLock = { + lockFile = ./Cargo.lock; + outputHashes = { + "typst-syntax-0.10.0" = "sha256-qiskc0G/ZdLRZjTicoKIOztRFem59TM4ki23Rl55y9s="; + }; + }; + + meta = { + changelog = "https://github.com/astrale-sharp/typstfmt/blob/${src.rev}/CHANGELOG.md"; + description = "A formatter for the Typst language"; + homepage = "https://github.com/astrale-sharp/typstfmt"; + license = lib.licenses.mit; + mainProgram = "typstfmt"; + maintainers = with lib.maintainers; [ figsoda geri1701 ]; + }; +} |