forked from mirrors/nixpkgs
lucky-commit: fix darwin build
This commit is contained in:
parent
90bd1ade20
commit
3b02a12f2a
|
@ -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";
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue