mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 16:42:09 +00:00
Merge pull request #143863 from figsoda/lucky-commit-fix-darwin
lucky-commit: fix darwin build
This commit is contained in:
commit
86661be087
|
@ -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";
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue