Merge pull request #312484 from Misterio77/typst-0-11-1

typst: add `updateScript`, run tests

authored by Pol Dellaiera and committed by GitHub 7732dabb bfebcc26

+11
+11
pkgs/by-name/ty/typst/package.nix
··· 7 7 , xz 8 8 , stdenv 9 9 , darwin 10 + , nix-update-script 10 11 }: 11 12 12 13 rustPlatform.buildRustPackage rec { ··· 46 47 OPENSSL_NO_VENDOR = true; 47 48 }; 48 49 50 + # Fix for "Found argument '--test-threads' which wasn't expected, or isn't valid in this context" 51 + postPatch = '' 52 + substituteInPlace tests/src/tests.rs --replace-fail 'ARGS.num_threads' 'ARGS.test_threads' 53 + substituteInPlace tests/src/args.rs --replace-fail 'num_threads' 'test_threads' 54 + ''; 55 + 49 56 postInstall = '' 50 57 installManPage crates/typst-cli/artifacts/*.1 51 58 installShellCompletion \ 52 59 crates/typst-cli/artifacts/typst.{bash,fish} \ 53 60 --zsh crates/typst-cli/artifacts/_typst 54 61 ''; 62 + 63 + cargoTestFlags = [ "--workspace" ]; 64 + 65 + passthru.updateScript = nix-update-script { }; 55 66 56 67 meta = { 57 68 changelog = "https://github.com/typst/typst/releases/tag/${src.rev}";