From 409d7cdfa9e855bc24868e69c4dde06447f7ebcd Mon Sep 17 00:00:00 2001 From: Gavin Zhao Date: Fri, 18 Apr 2025 00:16:45 -0400 Subject: [PATCH] zluda: provide fallback CMAKE_BUILD_TYPE Signed-off-by: Gavin Zhao --- pkgs/by-name/zl/zluda/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/zl/zluda/package.nix b/pkgs/by-name/zl/zluda/package.nix index c13e0440e4f9..7ffb292133af 100644 --- a/pkgs/by-name/zl/zluda/package.nix +++ b/pkgs/by-name/zl/zluda/package.nix @@ -55,6 +55,11 @@ rustPlatform.buildRustPackage rec { # xtask doesn't support passing --target, but nix hooks expect the folder structure from when it's set env.CARGO_BUILD_TARGET = stdenv.hostPlatform.rust.cargoShortTarget; + # Future packagers: + # This is a fix for https://github.com/NixOS/nixpkgs/issues/390469. Ideally + # ZLUDA should configure this automatically. Therefore, on every new update, + # please try removing this line and see if ZLUDA builds. + env.CMAKE_BUILD_TYPE = "Release"; preConfigure = '' # disable test written for windows only: https://github.com/vosen/ZLUDA/blob/774f4bcb37c39f876caf80ae0d39420fa4bc1c8b/zluda_inject/tests/inject.rs#L55