From 86df9cf159a8564d414f1d062ce8db2304d2c214 Mon Sep 17 00:00:00 2001 From: William G Underwood <42812654+WGUNDERWOOD@users.noreply.github.com> Date: Sat, 14 Sep 2024 13:02:16 +0100 Subject: [PATCH] tex-fmt: init at 0.4.3 --- pkgs/by-name/te/tex-fmt/package.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pkgs/by-name/te/tex-fmt/package.nix diff --git a/pkgs/by-name/te/tex-fmt/package.nix b/pkgs/by-name/te/tex-fmt/package.nix new file mode 100644 index 000000000000..13a7195668d1 --- /dev/null +++ b/pkgs/by-name/te/tex-fmt/package.nix @@ -0,0 +1,27 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, +}: + +rustPlatform.buildRustPackage rec { + pname = "tex-fmt"; + version = "0.4.3"; + + src = fetchFromGitHub { + owner = "WGUNDERWOOD"; + repo = "tex-fmt"; + rev = "refs/tags/v${version}"; + hash = "sha256-Atq/eyvdAuaUEeYDIC5D9icD44mcvuhsyuctYAPrBSU="; + }; + + cargoHash = "sha256-ShF2Z5Od/pgsNRM6WmxxFeE67pYZin1q4RR6nVmbrsA="; + + meta = { + description = "LaTeX formatter written in Rust"; + homepage = "https://github.com/WGUNDERWOOD/tex-fmt"; + license = lib.licenses.mit; + mainProgram = "tex-fmt"; + maintainers = with lib.maintainers; [ wgunderwood ]; + }; +}