Skip to content

Commit

Permalink
Merge pull request #333528 from emilazy/push-uprruwmzypry
Browse files Browse the repository at this point in the history
typst: patch `Cargo.lock` for Rust 1.80
  • Loading branch information
emilazy authored Aug 11, 2024
2 parents 5d06d0d + 4daa382 commit 21796a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pkgs/by-name/ty/typst/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion pkgs/by-name/ty/typst/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,13 @@ 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 = ''
# Fix for "Found argument '--test-threads' which wasn't expected, or isn't valid in this context"
substituteInPlace tests/src/tests.rs --replace-fail 'ARGS.num_threads' 'ARGS.test_threads'
substituteInPlace tests/src/args.rs --replace-fail 'num_threads' 'test_threads'
# Fix build with Rust 1.80; remove on next release
ln -sf ${./Cargo.lock} Cargo.lock
'';

postInstall = ''
Expand Down

0 comments on commit 21796a3

Please sign in to comment.