Explorar el Código

nix : use optionalAttrs for env mkDerivation attrset argument (#14726)

Wroclaw hace 6 meses
padre
commit
760b4484e3
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      .devops/nix/package.nix

+ 2 - 1
.devops/nix/package.nix

@@ -47,6 +47,7 @@ let
   inherit (lib)
     cmakeBool
     cmakeFeature
+    optionalAttrs
     optionals
     strings
     ;
@@ -197,7 +198,7 @@ effectiveStdenv.mkDerivation (finalAttrs: {
     ];
 
   # Environment variables needed for ROCm
-  env = optionals useRocm {
+  env = optionalAttrs useRocm {
     ROCM_PATH = "${rocmPackages.clr}";
     HIP_DEVICE_LIB_PATH = "${rocmPackages.rocm-device-libs}/amdgcn/bitcode";
   };