diff options
| author | Alexis Simon <alexis.simon@runbox.com> | 2025-01-19 18:38:25 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludovic.courtes@inria.fr> | 2025-01-23 16:27:31 +0100 |
| commit | 0d180a96b5eb2dbb7988c0e150a8bfebc1c138b0 (patch) | |
| tree | 378ccf9a501b5b054bc79f3b844c7f4341d4b283 | |
| parent | ed6a2346d7075dde226980b8ea4c4a9d70f62056 (diff) | |
typst: create typst module and add rust-ttf-parser
* guix-science/packages/typst.scm: New file.
Signed-off-by: Ludovic Courtès <ludovic.courtes@inria.fr>
| -rw-r--r-- | guix-science/packages/typst.scm | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/guix-science/packages/typst.scm b/guix-science/packages/typst.scm new file mode 100644 index 0000000..b3e3eab --- /dev/null +++ b/guix-science/packages/typst.scm | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | ;;; | ||
| 2 | ;;; Copyright © 2025 Alexis Simon <alexis.simon@runbox.com> | ||
| 3 | ;;; | ||
| 4 | ;;; This program is free software; you can redistribute it and/or modify it | ||
| 5 | ;;; under the terms of the GNU General Public License as published by | ||
| 6 | ;;; the Free Software Foundation; either version 3 of the License, or (at | ||
| 7 | ;;; your option) any later version. | ||
| 8 | ;;; | ||
| 9 | ;;; This program is distributed in the hope that it will be useful, but | ||
| 10 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | ;;; GNU General Public License for more details. | ||
| 13 | ;;; | ||
| 14 | ;;; You should have received a copy of the GNU General Public License | ||
| 15 | ;;; along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | |||
| 17 | (define-module (guix-science packages typst) | ||
| 18 | #:use-module ((guix licenses) #:prefix license:) | ||
| 19 | #:use-module (gnu packages rust) | ||
| 20 | #:use-module (gnu packages crates-io) | ||
| 21 | #:use-module (gnu packages crates-graphics) | ||
| 22 | #:use-module (gnu packages crates-tls) | ||
| 23 | #:use-module (gnu packages crates-gtk) | ||
| 24 | #:use-module (gnu packages crates-windows) | ||
| 25 | #:use-module (gnu packages crates-crypto) | ||
| 26 | #:use-module (gnu packages crates-web) | ||
| 27 | #:use-module (gnu packages crates-compression) | ||
| 28 | #:use-module (gnu packages crates-database) | ||
| 29 | #:use-module (gnu packages crates-check) | ||
| 30 | #:use-module (gnu packages tls) | ||
| 31 | #:use-module (guix packages) | ||
| 32 | #:use-module (guix gexp) | ||
| 33 | #:use-module (guix download) | ||
| 34 | #:use-module (guix git-download) | ||
| 35 | #:use-module (guix utils) | ||
| 36 | #:use-module (guix build-system cargo)) | ||
| 37 | |||
| 38 | (define-public rust-ttf-parser-0.24 | ||
| 39 | (package | ||
| 40 | (name "rust-ttf-parser") | ||
| 41 | (version "0.24.1") | ||
| 42 | (source | ||
| 43 | (origin | ||
| 44 | (method url-fetch) | ||
| 45 | (uri (crate-uri "ttf-parser" version)) | ||
| 46 | (file-name (string-append name "-" version ".tar.gz")) | ||
| 47 | (sha256 | ||
| 48 | (base32 "0jmcif537g3smzgcx0vfr4wwq4pnaypa7dnklasfhf2xzy813qjv")))) | ||
| 49 | (build-system cargo-build-system) | ||
| 50 | (arguments | ||
| 51 | `(#:skip-build? #t | ||
| 52 | #:cargo-inputs (("rust-core-maths" ,rust-core-maths-0.1)))) | ||
| 53 | (home-page "https://github.com/harfbuzz/ttf-parser") | ||
| 54 | (synopsis | ||
| 55 | "high-level, safe, zero-allocation font parser for TrueType, OpenType, and AAT.") | ||
| 56 | (description | ||
| 57 | "This package provides a high-level, safe, zero-allocation font parser for | ||
| 58 | @code{TrueType}, @code{OpenType}, and AAT.") | ||
| 59 | (license (list license:expat license:asl2.0)))) | ||
