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 , xz 8 , stdenv 9 , darwin 10 }: 11 12 rustPlatform.buildRustPackage rec { ··· 46 OPENSSL_NO_VENDOR = true; 47 }; 48 49 postInstall = '' 50 installManPage crates/typst-cli/artifacts/*.1 51 installShellCompletion \ 52 crates/typst-cli/artifacts/typst.{bash,fish} \ 53 --zsh crates/typst-cli/artifacts/_typst 54 ''; 55 56 meta = { 57 changelog = "https://github.com/typst/typst/releases/tag/${src.rev}";
··· 7 , xz 8 , stdenv 9 , darwin 10 + , nix-update-script 11 }: 12 13 rustPlatform.buildRustPackage rec { ··· 47 OPENSSL_NO_VENDOR = true; 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 + 56 postInstall = '' 57 installManPage crates/typst-cli/artifacts/*.1 58 installShellCompletion \ 59 crates/typst-cli/artifacts/typst.{bash,fish} \ 60 --zsh crates/typst-cli/artifacts/_typst 61 ''; 62 + 63 + cargoTestFlags = [ "--workspace" ]; 64 + 65 + passthru.updateScript = nix-update-script { }; 66 67 meta = { 68 changelog = "https://github.com/typst/typst/releases/tag/${src.rev}";