From 5e496546441d15060a841b8e1e9e4435a9bd519f Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Wed, 10 Jul 2024 23:48:28 -0400 Subject: [PATCH] rav1e: work around build failure with Rust 1.79 --- pkgs/by-name/ra/rav1e/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/ra/rav1e/package.nix b/pkgs/by-name/ra/rav1e/package.nix index b90dd2d56a61..2c8f99ef4cac 100644 --- a/pkgs/by-name/ra/rav1e/package.nix +++ b/pkgs/by-name/ra/rav1e/package.nix @@ -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 doesn’t 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";