From 09265b7ac39727747f0559853be732dc22752d89 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Sun, 2 Apr 2023 06:25:24 -0400 Subject: [PATCH 1/2] New package: typst-23.03.28 --- srcpkgs/typst/patches/cargo-workspace.patch | 22 +++++++++++++++++++++ srcpkgs/typst/template | 17 ++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 srcpkgs/typst/patches/cargo-workspace.patch create mode 100644 srcpkgs/typst/template diff --git a/srcpkgs/typst/patches/cargo-workspace.patch b/srcpkgs/typst/patches/cargo-workspace.patch new file mode 100644 index 000000000000..e84cc18b2d2a --- /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 000000000000..b59055ae19d2 --- /dev/null +++ b/srcpkgs/typst/template @@ -0,0 +1,17 @@ +# 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 + +# do_install() { +# vbin target/${RUST_TARGET}/release/typst +# } From 4cfc387530450e1214dc2f185f01d3620fb701c0 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Sun, 2 Apr 2023 06:25:32 -0400 Subject: [PATCH 2/2] New package: typst-lsp-0.3.1 --- srcpkgs/typst-lsp/template | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 srcpkgs/typst-lsp/template diff --git a/srcpkgs/typst-lsp/template b/srcpkgs/typst-lsp/template new file mode 100644 index 000000000000..04ffa56467e5 --- /dev/null +++ b/srcpkgs/typst-lsp/template @@ -0,0 +1,15 @@ +# Template file for 'typst-lsp' +pkgname=typst-lsp +version=0.3.1 +revision=1 +build_style=cargo +short_desc="Language server for Typst" +maintainer="classabbyamp " +license="Apache-2.0, MIT" +homepage="https://github.com/nvarner/typst-lsp" +distfiles="https://github.com/nvarner/typst-lsp/archive/refs/tags/v${version}.tar.gz" +checksum=27530f8e2e68954faefa0859151de52951d986ef2a5e0f67b6e76e568d285549 + +post_install() { + vlicense LICENSE-MIT.txt +}