ocamlPackages.labltk: fix build on darwin

This commit is contained in:
Et7f3 2023-01-03 01:06:14 +01:00
parent dea24b6610
commit 0a29695c1f
2 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, lib, makeWrapper, fetchzip, ocaml, findlib, tcl, tk }:
{ stdenv, lib, makeWrapper, fetchzip, Cocoa, ocaml, findlib, tcl, tk }:
let
params =
@ -60,7 +60,7 @@ stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-labltk";
nativeBuildInputs = [ ocaml findlib makeWrapper ];
buildInputs = [ tcl tk ];
buildInputs = [ tcl tk ] ++ lib.optionals stdenv.isDarwin [ Cocoa ];
configureFlags = [ "--use-findlib" "--installbindir" "$(out)/bin" ];
dontAddPrefix = true;

View File

@ -703,7 +703,9 @@ let
then callPackage ../development/ocaml-modules/lablgtk-extras { }
else callPackage ../development/ocaml-modules/lablgtk-extras/1.4.nix { };
labltk = callPackage ../development/ocaml-modules/labltk { };
labltk = callPackage ../development/ocaml-modules/labltk {
inherit (pkgs.darwin.apple_sdk.frameworks) Cocoa;
};
lacaml = callPackage ../development/ocaml-modules/lacaml { };