translatelocally: add buildArch flag

This commit is contained in:
Alexandru Scvortov
2025-03-13 11:55:58 +00:00
committed by Alexandru Scvorțov
parent d817fcbaba
commit ebfb53692b
@@ -12,6 +12,7 @@
runCommand,
translatelocally,
translatelocally-models,
buildArch ? "x86-64",
}:
let
@@ -65,6 +66,10 @@ stdenv.mkDerivation (finalAttrs: {
cmakeFlags = [
"-DBLAS_LIBRARIES=-lblas"
"-DCBLAS_LIBRARIES=-lcblas"
# See the following for context:
# https://github.com/NixOS/nixpkgs/pull/385549
(lib.optionalString stdenv.hostPlatform.isx86_64 "-DBUILD_ARCH=${buildArch}")
];
passthru.tests = {