From c672a264e1112ea0796c46f3ee0b7ecd358be8c2 Mon Sep 17 00:00:00 2001 From: Konrad Malik Date: Sun, 8 Jan 2023 14:59:29 +0100 Subject: [PATCH] sad: fix build on aarch64 --- pkgs/tools/text/sad/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/tools/text/sad/default.nix b/pkgs/tools/text/sad/default.nix index 08665e22d9ec..9225fd98b86c 100644 --- a/pkgs/tools/text/sad/default.nix +++ b/pkgs/tools/text/sad/default.nix @@ -16,6 +16,12 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "sha256-krQTa9R3hmMVKLoBgnbCw+aSQu9HUXfA3XflB8AZv6w="; + # fix for compilation on aarch64 + # see https://github.com/NixOS/nixpkgs/issues/145726 + prePatch = '' + rm .cargo/config.toml + ''; + meta = with lib; { description = "CLI tool to search and replace"; homepage = "https://github.com/ms-jpq/sad";