oku: avoid optimizations (#423716)

This commit is contained in:
Valentin Gagarin 2025-07-09 10:30:56 +02:00 committed by GitHub
commit ff0e539baf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 = [