3
0
Fork 0
forked from mirrors/nixpkgs

lucky-commit: fix darwin build

This commit is contained in:
figsoda 2021-10-30 12:48:45 -04:00
parent 90bd1ade20
commit 3b02a12f2a
2 changed files with 6 additions and 2 deletions

View file

@ -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";

View file

@ -26308,7 +26308,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;