ocamlPackages.labltk: fix build on darwin
This commit is contained in:
parent
dea24b6610
commit
0a29695c1f
@ -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;
|
||||
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user