diff --git a/srcpkgs/typst/patches/cargo-workspace.patch b/srcpkgs/typst/patches/cargo-workspace.patch new file mode 100644 index 00000000000..e84cc18b2d2 --- /dev/null +++ b/srcpkgs/typst/patches/cargo-workspace.patch @@ -0,0 +1,22 @@ +From 613c644f0479b2aae6be96fa389352883a2321c3 Mon Sep 17 00:00:00 2001 +From: figsoda +Date: Sat, 1 Apr 2023 08:22:47 -0400 +Subject: [PATCH] Default workspace members to cli (#484) + +--- + Cargo.toml | 1 + + flake.nix | 3 --- + 2 files changed, 1 insertion(+), 3 deletions(-) + +diff --git a/Cargo.toml b/Cargo.toml +index 3db8b3b9c..3fe010947 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -6,6 +6,7 @@ edition = "2021" + + [workspace] + members = ["cli", "docs", "library", "macros", "tests"] ++default-members = ["cli"] + + [lib] + doctest = false diff --git a/srcpkgs/typst/template b/srcpkgs/typst/template new file mode 100644 index 00000000000..421b8ecc6bd --- /dev/null +++ b/srcpkgs/typst/template @@ -0,0 +1,13 @@ +# Template file for 'typst' +pkgname=typst +version=23.03.28 +revision=1 +build_style=cargo +make_install_args="--path cli" +short_desc="Markup-based typesetting system that is powerful and easy to learn" +maintainer="classabbyamp " +license="Apache-2.0" +homepage="https://typst.app" +changelog="https://typst.app/docs/changelog/" +distfiles="https://github.com/typst/typst/archive/refs/tags/v${version//./-}.tar.gz" +checksum=494b0438940a21370d31d44e090e1a6b1b3acabc8b9c4c181455f86441d5cab7