Merge pull request #304736 from abysssol/ollama-fix
ollama: fix compilation errors caused by dependency changes
This commit is contained in:
commit
55f906f52b
|
@ -100,10 +100,6 @@ let
|
||||||
cudaPackages.cuda_cudart
|
cudaPackages.cuda_cudart
|
||||||
cudaPackages.cuda_cudart.static
|
cudaPackages.cuda_cudart.static
|
||||||
];
|
];
|
||||||
postBuild = ''
|
|
||||||
rm "$out/lib64"
|
|
||||||
ln -s "lib" "$out/lib64"
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
runtimeLibs = lib.optionals enableRocm [
|
runtimeLibs = lib.optionals enableRocm [
|
||||||
|
@ -140,6 +136,8 @@ goBuild ((lib.optionalAttrs enableRocm {
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
|
] ++ lib.optionals enableRocm [
|
||||||
|
rocmPackages.llvm.bintools
|
||||||
] ++ lib.optionals (enableRocm || enableCuda) [
|
] ++ lib.optionals (enableRocm || enableCuda) [
|
||||||
makeWrapper
|
makeWrapper
|
||||||
] ++ lib.optionals stdenv.isDarwin
|
] ++ lib.optionals stdenv.isDarwin
|
||||||
|
|
Loading…
Reference in New Issue
Block a user