ocamlPackages.cairo2: fix build on aarch64-darwin

This commit is contained in:
Ben Siraphob 2022-02-06 13:37:26 -06:00 committed by Vincent Laporte
parent 5f00415074
commit 6308679d28
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,5 @@
{ stdenv, lib, fetchurl, buildDunePackage, ocaml, dune-configurator, pkg-config, cairo }:
{ stdenv, lib, fetchurl, buildDunePackage, ocaml, dune-configurator, pkg-config, cairo
, ApplicationServices }:
buildDunePackage rec {
pname = "cairo2";
@ -13,7 +14,7 @@ buildDunePackage rec {
useDune2 = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ cairo dune-configurator ];
buildInputs = [ cairo dune-configurator ] ++ lib.optionals stdenv.isDarwin [ ApplicationServices ];
doCheck = !(stdenv.isDarwin
# https://github.com/Chris00/ocaml-cairo/issues/19

View File

@ -140,7 +140,9 @@ let
ocaml_cairo = callPackage ../development/ocaml-modules/ocaml-cairo { };
cairo2 = callPackage ../development/ocaml-modules/cairo2 { };
cairo2 = callPackage ../development/ocaml-modules/cairo2 {
inherit (pkgs.darwin.apple_sdk.frameworks) ApplicationServices;
};
callipyge = callPackage ../development/ocaml-modules/callipyge { };