From 234af4161bc52dc9328eb4208bec13fc4790d693 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Wed, 9 Jul 2025 15:13:19 +0900 Subject: [PATCH] oku: generalize executable Binary cache from https://hydra.nixos.org/build/301557563 coredumps on non-AVX-512 devices. Improved this comment by Prince213 Co-authored-by: Sizhe Zhao --- pkgs/by-name/ok/oku/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/ok/oku/package.nix b/pkgs/by-name/ok/oku/package.nix index cfef18cd733c..08dcd44594a9 100644 --- a/pkgs/by-name/ok/oku/package.nix +++ b/pkgs/by-name/ok/oku/package.nix @@ -25,6 +25,12 @@ rustPlatform.buildRustPackage (finalAttrs: { hash = "sha256-utbey8DFXUWU6u2H2unNjCHE3/bwhPdrxAOApC+unGA="; }; + # Avoiding optimizations for reproducibility + prePatch = '' + substituteInPlace .cargo/config.toml \ + --replace-fail '"-C", "target-cpu=native", ' "" + ''; + cargoHash = "sha256-rwf9jdr+RDpUcTEG7Xhpph0zuyz6tdFx6hWEZRuxkTY="; nativeBuildInputs = [