Skip to content

Commit

Permalink
typst: add oxifmt package for typst
Browse files Browse the repository at this point in the history
  • Loading branch information
cherrypiejam committed Jan 7, 2025
1 parent 8043a85 commit fa1d245
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
26 changes: 26 additions & 0 deletions pkgs/development/typst-packages/oxifmt.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
lib,
buildTypstPackage,
fetchFromGitHub,
}:

buildTypstPackage rec {
pname = "oxifmt";
version = "0.2.0";

src = fetchFromGitHub {
owner = "PgBiel";
repo = "typst-oxifmt";
tag = "v${version}";
hash = "sha256-OJpkUsoAOHHn7T2O+wICW4nLJ+epkAOfe5R1pMhv1MQ=";
};

meta = {
homepage = "https://github.com/PgBiel/typst-oxifmt";
description = "Convenient Rust-like string formatting in Typst";
license = with lib.licenses; [
asl20
mit
];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/typst-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
{
cetz = callPackage ../development/typst-packages/cetz.nix { };

oxifmt = callPackage ../development/typst-packages/oxifmt.nix { };

polylux = callPackage ../development/typst-packages/polylux.nix { };
}

0 comments on commit fa1d245

Please sign in to comment.