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
|
let
|
||||||
params =
|
params =
|
||||||
|
@ -60,7 +60,7 @@ stdenv.mkDerivation rec {
|
||||||
pname = "ocaml${ocaml.version}-labltk";
|
pname = "ocaml${ocaml.version}-labltk";
|
||||||
|
|
||||||
nativeBuildInputs = [ ocaml findlib makeWrapper ];
|
nativeBuildInputs = [ ocaml findlib makeWrapper ];
|
||||||
buildInputs = [ tcl tk ];
|
buildInputs = [ tcl tk ] ++ lib.optionals stdenv.isDarwin [ Cocoa ];
|
||||||
|
|
||||||
configureFlags = [ "--use-findlib" "--installbindir" "$(out)/bin" ];
|
configureFlags = [ "--use-findlib" "--installbindir" "$(out)/bin" ];
|
||||||
dontAddPrefix = true;
|
dontAddPrefix = true;
|
||||||
|
|
|
@ -703,7 +703,9 @@ let
|
||||||
then callPackage ../development/ocaml-modules/lablgtk-extras { }
|
then callPackage ../development/ocaml-modules/lablgtk-extras { }
|
||||||
else callPackage ../development/ocaml-modules/lablgtk-extras/1.4.nix { };
|
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 { };
|
lacaml = callPackage ../development/ocaml-modules/lacaml { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue