magma: unbreak for cudaPackages_12

Hotfix based on the suggestion from https://github.com/NixOS/nixpkgs/issues/281656#issuecomment-1902931289
This commit is contained in:
Someone Serge 2024-01-25 01:31:00 +00:00
parent ef181957e8
commit 5faf086cad
No known key found for this signature in database
GPG Key ID: 7B0E3B1390D61DA4

View File

@ -142,6 +142,8 @@ stdenv.mkDerivation {
] ++ lists.optionals rocmSupport [
"-DCMAKE_C_COMPILER=${rocmPackages.clr}/bin/hipcc"
"-DCMAKE_CXX_COMPILER=${rocmPackages.clr}/bin/hipcc"
] ++ lists.optionals (cudaPackages.cudaAtLeast "12.0.0") [
(lib.cmakeBool "USE_FORTRAN" false)
];
buildFlags = [