From db22ce347febbe54a3c730ab7136efdcf752edb4 Mon Sep 17 00:00:00 2001 From: hutli <6594598+hutli@users.noreply.github.com> Date: Sat, 2 Mar 2024 02:42:22 +0100 Subject: [PATCH] using host platform isStatic as default value for "enableStatic" Co-authored-by: Philip Taron --- .devops/nix/package.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.devops/nix/package.nix b/.devops/nix/package.nix index 027921ac4..cd5e820d5 100644 --- a/.devops/nix/package.nix +++ b/.devops/nix/package.nix @@ -31,7 +31,8 @@ useRocm ? config.rocmSupport, useVulkan ? false, llamaVersion ? "0.0.0", # Arbitrary version, substituted by the flake - buildStatic ? false, + effectiveStdenv = if useCuda then cudaPackages.backendStdenv else stdenv, + enableStatic ? effectiveStdenv.hostPlatform.isStatic }@inputs: let