Loading pkgs/by-name/fr/frigate/package.nix +2 −1 Original line number Diff line number Diff line Loading @@ -88,7 +88,8 @@ python.pkgs.buildPythonApplication rec { --replace-fail "/usr/local/lib/vec0" "${lib.getLib sqlite-vec}/lib/vec0${stdenv.hostPlatform.extensions.sharedLibrary}" '' + lib.optionalString (stdenv.hostPlatform == "x86_64-linux") '' # clang-rocm, provided by `rocmPackages.clr`, only works on x86_64-linux specifically + lib.optionalString (with stdenv.hostPlatform; isx86_64 && isLinux) '' substituteInPlace frigate/detectors/plugins/rocm.py \ --replace-fail "/opt/rocm/bin/rocminfo" "rocminfo" \ --replace-fail "/opt/rocm/lib" "${rocmPackages.clr}/lib" Loading Loading
pkgs/by-name/fr/frigate/package.nix +2 −1 Original line number Diff line number Diff line Loading @@ -88,7 +88,8 @@ python.pkgs.buildPythonApplication rec { --replace-fail "/usr/local/lib/vec0" "${lib.getLib sqlite-vec}/lib/vec0${stdenv.hostPlatform.extensions.sharedLibrary}" '' + lib.optionalString (stdenv.hostPlatform == "x86_64-linux") '' # clang-rocm, provided by `rocmPackages.clr`, only works on x86_64-linux specifically + lib.optionalString (with stdenv.hostPlatform; isx86_64 && isLinux) '' substituteInPlace frigate/detectors/plugins/rocm.py \ --replace-fail "/opt/rocm/bin/rocminfo" "rocminfo" \ --replace-fail "/opt/rocm/lib" "${rocmPackages.clr}/lib" Loading