From 94cc2f9c9f0accc56c8fad8a9c9106d8fef5ac46 Mon Sep 17 00:00:00 2001 From: K900 Date: Thu, 2 Jun 2022 17:31:02 +0300 Subject: [PATCH] exa: fix build with rustc 1.61 --- pkgs/tools/misc/exa/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/tools/misc/exa/default.nix b/pkgs/tools/misc/exa/default.nix index 632eb459058..40fcc8b01c2 100644 --- a/pkgs/tools/misc/exa/default.nix +++ b/pkgs/tools/misc/exa/default.nix @@ -18,6 +18,10 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "sha256-ah8IjShmivS6IWL3ku/4/j+WNr/LdUnh1YJnPdaFdcM="; + # FIXME: LTO is broken with rustc 1.61, see https://github.com/rust-lang/rust/issues/97255 + # remove this with rustc 1.61.1+ + CARGO_PROFILE_RELEASE_LTO = "false"; + nativeBuildInputs = [ cmake pkg-config installShellFiles pandoc ]; buildInputs = [ zlib ] ++ lib.optionals stdenv.isDarwin [ libiconv Security ];