diff options
| author | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2026-07-07 12:40:25 +0200 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2026-07-14 19:13:26 +0200 |
| commit | 50428b90ef6ca6269a9034f32d3d666ebea7f037 (patch) | |
| tree | adeed26eeca48dbc1e57abbc1d91b414e9718a1f /gnu/packages/rust-apps.scm | |
| parent | acbd1ddda4f319a4c52f2527cf42192bd9b775ea (diff) | |
gnu: typst: Update to 0.15.0.
* gnu/packages/rust-apps.scm (typst): Update to 0.15.0.
[source]: Change to git-fetch.
[#:cargo-install-paths]: New argument.
[#:phases]: Add ‘fix-dev-assets’.
Adjust ‘configure-artifacts’ accordingly.
* gnu/packages/rust-crates.scm (lookup-cargo-inputs)[typst]: Update
accordingly.
Diffstat (limited to 'gnu/packages/rust-apps.scm')
| -rw-r--r-- | gnu/packages/rust-apps.scm | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm index 192561bfbf3..5cd5e1f2043 100644 --- a/gnu/packages/rust-apps.scm +++ b/gnu/packages/rust-apps.scm | |||
| @@ -3944,14 +3944,16 @@ blanks grouped by language.") | |||
| 3944 | (define-public typst | 3944 | (define-public typst |
| 3945 | (package | 3945 | (package |
| 3946 | (name "typst") | 3946 | (name "typst") |
| 3947 | (version "0.14.2") | 3947 | (version "0.15.0") |
| 3948 | (source | 3948 | (source |
| 3949 | (origin | 3949 | (origin |
| 3950 | (method url-fetch) | 3950 | (method git-fetch) |
| 3951 | (uri (crate-uri "typst-cli" version)) | 3951 | (uri (git-reference |
| 3952 | (file-name (string-append name "-" version ".tar.gz")) | 3952 | (url "https://github.com/typst/typst") |
| 3953 | (commit (string-append "v" version)))) | ||
| 3954 | (file-name (git-file-name name version)) | ||
| 3953 | (sha256 | 3955 | (sha256 |
| 3954 | (base32 "176gnwxzs5ddwpsx6a1ayvwr4da0k14mqgd4z0vksy3fpfhrvy9h")))) | 3956 | (base32 "0y727lyicn3ciq36mdpbcg8d09naff39y1i52467mlmr11p0l9xa")))) |
| 3955 | (build-system cargo-build-system) | 3957 | (build-system cargo-build-system) |
| 3956 | (arguments | 3958 | (arguments |
| 3957 | (list | 3959 | (list |
| @@ -3961,15 +3963,22 @@ blanks grouped by language.") | |||
| 3961 | #:modules '((guix build cargo-build-system) | 3963 | #:modules '((guix build cargo-build-system) |
| 3962 | ((guix build copy-build-system) #:prefix copy:) | 3964 | ((guix build copy-build-system) #:prefix copy:) |
| 3963 | (guix build utils)) | 3965 | (guix build utils)) |
| 3966 | #:cargo-install-paths ''("crates/typst-cli") | ||
| 3964 | #:phases | 3967 | #:phases |
| 3965 | #~(modify-phases %standard-phases | 3968 | #~(modify-phases %standard-phases |
| 3966 | (add-after 'unpack 'set-version-string | 3969 | (add-after 'unpack 'set-version-string |
| 3967 | (lambda _ | 3970 | (lambda _ |
| 3968 | (setenv "TYPST_VERSION" #$(package-version this-package)))) | 3971 | (setenv "TYPST_VERSION" #$(package-version this-package)))) |
| 3972 | (add-after 'unpack 'fix-dev-assets | ||
| 3973 | (lambda _ | ||
| 3974 | (substitute* "Cargo.toml" | ||
| 3975 | (("typst-dev-assets = \\{[^}]*\\}") | ||
| 3976 | (string-append "typst-dev-assets = {version=\"" | ||
| 3977 | #$version | ||
| 3978 | "\"}"))))) | ||
| 3969 | (add-after 'configure 'configure-artifacts | 3979 | (add-after 'configure 'configure-artifacts |
| 3970 | (lambda _ | 3980 | (lambda _ |
| 3971 | (mkdir "artifacts") | 3981 | (setenv "GEN_ARTIFACTS" (string-append (getcwd) "/artifacts")))) |
| 3972 | (setenv "GEN_ARTIFACTS" "artifacts"))) | ||
| 3973 | (add-after 'install 'install-artifacts | 3982 | (add-after 'install 'install-artifacts |
| 3974 | (lambda args | 3983 | (lambda args |
| 3975 | (apply (assoc-ref copy:%standard-phases 'install) | 3984 | (apply (assoc-ref copy:%standard-phases 'install) |
