rav1e: work around build failure with Rust 1.79

This commit is contained in:
Randy Eckenrode 2024-07-10 23:48:28 -04:00
parent 637b531dcf
commit 5e49654644
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9

View File

@ -45,6 +45,8 @@ rustPlatform.buildRustPackage rec {
# and linking it with cctools ld64.
postPatch = lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) ''
substituteInPlace build.rs --replace-fail '.arg("-x")' '.arg("-S")'
# Thin LTO doesnt appear to work with Rust 1.79. rav1e fail to build when building fern.
substituteInPlace Cargo.toml --replace-fail 'lto = "thin"' 'lto = "fat"'
'';
checkType = "debug";