mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 22:57:49 +00:00
typst: run tests
This commit is contained in:
parent
a73f616769
commit
7bd6d9548e
@ -47,6 +47,12 @@ rustPlatform.buildRustPackage rec {
|
||||
OPENSSL_NO_VENDOR = true;
|
||||
};
|
||||
|
||||
# Fix for "Found argument '--test-threads' which wasn't expected, or isn't valid in this context"
|
||||
postPatch = ''
|
||||
substituteInPlace tests/src/tests.rs --replace-fail 'ARGS.num_threads' 'ARGS.test_threads'
|
||||
substituteInPlace tests/src/args.rs --replace-fail 'num_threads' 'test_threads'
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
installManPage crates/typst-cli/artifacts/*.1
|
||||
installShellCompletion \
|
||||
@ -54,6 +60,8 @@ rustPlatform.buildRustPackage rec {
|
||||
--zsh crates/typst-cli/artifacts/_typst
|
||||
'';
|
||||
|
||||
cargoTestFlags = [ "--workspace" ];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user