diff --git a/pkgs/applications/version-management/git-and-tools/lucky-commit/default.nix b/pkgs/applications/version-management/git-and-tools/lucky-commit/default.nix index 71c40e86aa97..7fd83e6bf7b9 100644 --- a/pkgs/applications/version-management/git-and-tools/lucky-commit/default.nix +++ b/pkgs/applications/version-management/git-and-tools/lucky-commit/default.nix @@ -2,6 +2,8 @@ , rustPlatform , fetchFromGitHub , withOpenCL ? true +, stdenv +, OpenCL , ocl-icd }: @@ -18,7 +20,7 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "sha256-MvopLKhovwXaEmRgXnAzJeuhPgqnMjt0EtKUGSWFpaY="; - buildInputs = lib.optional withOpenCL [ ocl-icd ]; + buildInputs = lib.optional withOpenCL (if stdenv.isDarwin then OpenCL else ocl-icd); cargoBuildFlags = lib.optional (!withOpenCL) "--no-default-features"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ba628ca19a84..056272da3372 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26312,7 +26312,9 @@ with pkgs; lscolors = callPackage ../applications/misc/lscolors { }; - lucky-commit = callPackage ../applications/version-management/git-and-tools/lucky-commit { }; + lucky-commit = callPackage ../applications/version-management/git-and-tools/lucky-commit { + inherit (darwin.apple_sdk.frameworks) OpenCL; + }; luddite = with python3Packages; toPythonApplication luddite;