Merge pull request #224736 from figsoda/typst

figsoda 5cdf8448 18024161

Changed files
+219 -28
pkgs
tools
typesetting
+216 -19
pkgs/tools/typesetting/typst/Cargo.lock
···
]
[[package]]
+
name = "anstream"
+
version = "0.2.6"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "342258dd14006105c2b75ab1bd7543a03bdf0cfc94383303ac212a04939dff6f"
+
dependencies = [
+
"anstyle",
+
"anstyle-parse",
+
"anstyle-wincon",
+
"concolor-override",
+
"concolor-query",
+
"is-terminal",
+
"utf8parse",
+
]
+
+
[[package]]
+
name = "anstyle"
+
version = "0.3.5"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "23ea9e81bd02e310c216d080f6223c179012256e5151c41db88d12c88a1684d2"
+
+
[[package]]
+
name = "anstyle-parse"
+
version = "0.1.1"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "a7d1bb534e9efed14f3e5f44e7dd1a4f709384023a4165199a4241e18dff0116"
+
dependencies = [
+
"utf8parse",
+
]
+
+
[[package]]
+
name = "anstyle-wincon"
+
version = "0.2.0"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "c3127af6145b149f3287bb9a0d10ad9c5692dba8c53ad48285e5bec4063834fa"
+
dependencies = [
+
"anstyle",
+
"windows-sys 0.45.0",
+
]
+
+
[[package]]
name = "arrayref"
version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
···
[[package]]
name = "biblatex"
-
version = "0.7.0"
+
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "1bc17a7f4d461f93f5dbbae4c961746cb4aafb5c6c1a61089a86836614932a3c"
+
checksum = "cc9fd60378277e44cd400ec5f35e768ce0d5a63d8d18ac7b1a9231196251dae5"
dependencies = [
"chrono",
"numerals",
···
]
[[package]]
+
name = "clap"
+
version = "4.2.1"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "046ae530c528f252094e4a77886ee1374437744b2bff1497aa898bbddbbb29b3"
+
dependencies = [
+
"clap_builder",
+
"clap_derive",
+
"once_cell",
+
]
+
+
[[package]]
+
name = "clap_builder"
+
version = "4.2.1"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "223163f58c9a40c3b0a43e1c4b50a9ce09f007ea2cb1ec258a687945b4b7929f"
+
dependencies = [
+
"anstream",
+
"anstyle",
+
"bitflags",
+
"clap_lex",
+
"strsim",
+
]
+
+
[[package]]
+
name = "clap_derive"
+
version = "4.2.0"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "3f9644cd56d6b87dbe899ef8b053e331c0637664e9e21a33dfcdc36093f5c5c4"
+
dependencies = [
+
"heck",
+
"proc-macro2",
+
"quote",
+
"syn 2.0.11",
+
]
+
+
[[package]]
+
name = "clap_lex"
+
version = "0.4.1"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "8a2dd5a6fe8c6e3502f568a6353e5273bbb15193ad9a89e457b9970798efbea1"
+
+
[[package]]
name = "codespan-reporting"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
···
]
[[package]]
+
name = "concolor-override"
+
version = "1.0.0"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "a855d4a1978dc52fb0536a04d384c2c0c1aa273597f08b77c8c4d3b2eec6037f"
+
+
[[package]]
+
name = "concolor-query"
+
version = "0.3.3"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "88d11d52c3d7ca2e6d0040212be9e4dbbcd78b6447f535b6b561f449427944cf"
+
dependencies = [
+
"windows-sys 0.45.0",
+
]
+
+
[[package]]
name = "core-foundation-sys"
version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
···
"proc-macro2",
"quote",
"scratch",
-
"syn 2.0.4",
+
"syn 2.0.11",
]
[[package]]
···
dependencies = [
"proc-macro2",
"quote",
-
"syn 2.0.4",
+
"syn 2.0.11",
]
[[package]]
···
]
[[package]]
+
name = "errno"
+
version = "0.3.0"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "50d6a0976c999d473fe89ad888d5a284e55366d9dc9038b1ba2aa15128c4afa0"
+
dependencies = [
+
"errno-dragonfly",
+
"libc",
+
"windows-sys 0.45.0",
+
]
+
+
[[package]]
+
name = "errno-dragonfly"
+
version = "0.1.2"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf"
+
dependencies = [
+
"cc",
+
"libc",
+
]
+
+
[[package]]
name = "fancy-regex"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
···
[[package]]
name = "hayagriva"
-
version = "0.2.0"
+
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "33f939b9606af811242f770582c89a2f8bb5de4e531c0a1df9d2d4906bcbc32a"
+
checksum = "d8a21ff266f0b113789bbf4a27da16330315eebbd7df8e844f95d29f92ad556d"
dependencies = [
"biblatex",
"chrono",
···
checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
[[package]]
+
name = "hermit-abi"
+
version = "0.3.1"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286"
+
+
[[package]]
name = "hypher"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
···
]
[[package]]
+
name = "io-lifetimes"
+
version = "1.0.9"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "09270fd4fa1111bc614ed2246c7ef56239a3063d5be0d1ec3b589c505d400aeb"
+
dependencies = [
+
"hermit-abi",
+
"libc",
+
"windows-sys 0.45.0",
+
]
+
+
[[package]]
+
name = "is-terminal"
+
version = "0.4.6"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "256017f749ab3117e93acb91063009e1f1bb56d03965b14c2c8df4eb02c524d8"
+
dependencies = [
+
"hermit-abi",
+
"io-lifetimes",
+
"rustix",
+
"windows-sys 0.45.0",
+
]
+
+
[[package]]
name = "isolang"
version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
···
checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f"
[[package]]
+
name = "linux-raw-sys"
+
version = "0.3.0"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "cd550e73688e6d578f0ac2119e32b797a327631a42f9433e59d02e139c8df60d"
+
+
[[package]]
name = "lipsum"
-
version = "0.8.2"
-
source = "git+https://github.com/reknih/lipsum#025427353ab32268daa3d96feda380a96db529c5"
+
version = "0.9.0"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "9c5e9ef2d2ad6fe67a59ace27c203c8d3a71d195532ee82e3bbe0d5f9a9ca541"
dependencies = [
"rand",
"rand_chacha",
···
checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3"
[[package]]
+
name = "open"
+
version = "4.0.1"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "075c5203b3a2b698bc72c6c10b1f6263182135751d5013ea66e8a4b3d0562a43"
+
dependencies = [
+
"pathdiff",
+
]
+
+
[[package]]
name = "paste"
version = "1.0.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9f746c4065a8fa3fe23974dd82f15431cc8d40779821001404d10d2e79ca7d79"
+
+
[[package]]
+
name = "pathdiff"
+
version = "0.2.1"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "8835116a5c179084a830efb3adc117ab007512b535bc1a21c991d3b32a6b44dd"
[[package]]
name = "pdf-writer"
···
[[package]]
+
name = "rustix"
+
version = "0.37.5"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "0e78cc525325c06b4a7ff02db283472f3c042b7ff0c391f96c6d5ac6f4f91b75"
+
dependencies = [
+
"bitflags",
+
"errno",
+
"io-lifetimes",
+
"libc",
+
"linux-raw-sys",
+
"windows-sys 0.45.0",
+
]
+
+
[[package]]
name = "rustversion"
version = "1.0.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
···
dependencies = [
"proc-macro2",
"quote",
-
"syn 2.0.4",
+
"syn 2.0.11",
[[package]]
···
checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
[[package]]
+
name = "strsim"
+
version = "0.10.0"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
+
+
[[package]]
name = "strum"
version = "0.24.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
···
[[package]]
name = "syn"
-
version = "2.0.4"
+
version = "2.0.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "2c622ae390c9302e214c31013517c2061ecb2699935882c60a9b37f82f8625ae"
+
checksum = "21e3787bb71465627110e7d87ed4faaa36c1f61042ee67badb9e2ef173accc40"
dependencies = [
"proc-macro2",
"quote",
···
dependencies = [
"proc-macro2",
"quote",
-
"syn 2.0.4",
+
"syn 2.0.11",
[[package]]
···
[[package]]
name = "typst"
-
version = "0.0.0"
+
version = "0.1.0"
dependencies = [
"bitflags",
"bytemuck",
···
[[package]]
name = "typst-cli"
-
version = "0.0.0"
+
version = "0.1.0"
dependencies = [
"chrono",
+
"clap",
"codespan-reporting",
"comemo",
"dirs",
···
"memmap2",
"notify",
"once_cell",
-
"pico-args",
+
"open",
"same-file",
"siphasher",
"typst",
···
[[package]]
name = "typst-docs"
-
version = "0.0.0"
+
version = "0.1.0"
dependencies = [
"comemo",
"heck",
···
[[package]]
name = "typst-library"
-
version = "0.0.0"
+
version = "0.1.0"
dependencies = [
"comemo",
"csv",
···
"roxmltree",
"rustybuzz",
"serde_json",
+
"serde_yaml",
"smallvec",
"syntect",
"ttf-parser 0.18.1",
···
[[package]]
name = "typst-macros"
-
version = "0.0.0"
+
version = "0.1.0"
dependencies = [
"heck",
"proc-macro2",
···
[[package]]
name = "typst-tests"
-
version = "0.0.0"
+
version = "0.1.0"
dependencies = [
"comemo",
"elsa",
···
"siphasher",
"svgtypes",
+
+
[[package]]
+
name = "utf8parse"
+
version = "0.2.1"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a"
[[package]]
name = "version_check"
+3 -9
pkgs/tools/typesetting/typst/default.nix
···
rustPlatform.buildRustPackage rec {
pname = "typst";
-
version = "23-03-28";
+
version = "0.1";
src = fetchFromGitHub {
owner = "typst";
repo = "typst";
rev = "v${version}";
-
hash = "sha256-0fTGbXdpzPadABWqdReQNZf2N7OMZ8cs9U5fmhfN6m4=";
+
hash = "sha256-fPcQlgmpViDsvd9OmnP1wZoMTOtyL5pfH6plktNG0JQ=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"iai-0.1.1" = "sha256-EdNzCPht5chg7uF9O8CtPWR/bzSYyfYIXNdLltqdlR0=";
-
"lipsum-0.8.2" = "sha256-deIbpn4YM7/NeuJ5Co48ivJmxwrcsbLl6c3cP3JZxAQ=";
};
};
···
darwin.apple_sdk.frameworks.CoreServices
];
-
cargoBuildFlags = [ "-p" "typst-cli" ];
-
cargoTestFlags = [ "-p" "typst-cli" ];
-
-
# https://github.com/typst/typst/blob/056d15a/cli/src/main.rs#L164
-
TYPST_VERSION = version;
-
meta = with lib; {
description = "A new markup-based typesetting system that is powerful and easy to learn";
homepage = "https://typst.app";
+
changelog = "https://github.com/typst/typst/releases/tag/${src.rev}";
license = licenses.asl20;
maintainers = with maintainers; [ drupol figsoda kanashimia ];
};