diff --git a/pkgs/development/typst-packages/oxifmt.nix b/pkgs/development/typst-packages/oxifmt.nix new file mode 100644 index 00000000000000..9838c7c74aa881 --- /dev/null +++ b/pkgs/development/typst-packages/oxifmt.nix @@ -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 + ]; + }; +} diff --git a/pkgs/top-level/typst-packages.nix b/pkgs/top-level/typst-packages.nix index 23396457376523..728b1d4e27ef0b 100644 --- a/pkgs/top-level/typst-packages.nix +++ b/pkgs/top-level/typst-packages.nix @@ -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 { }; }