ocamlPackages.gstreamer: fix build on darwin
This commit is contained in:
parent
0a29695c1f
commit
5c304acd43
|
@ -1,4 +1,4 @@
|
||||||
{ lib, buildDunePackage, fetchFromGitHub, dune-configurator, pkg-config, glib, gst_all_1 }:
|
{ lib, stdenv, buildDunePackage, fetchFromGitHub, dune-configurator, AppKit, Foundation, pkg-config, glib, gst_all_1 }:
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "gstreamer";
|
pname = "gstreamer";
|
||||||
|
@ -12,7 +12,7 @@ buildDunePackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ dune-configurator ];
|
buildInputs = [ dune-configurator ] ++ lib.optionals stdenv.isDarwin [ AppKit Foundation ];
|
||||||
propagatedBuildInputs = [ glib.dev gst_all_1.gstreamer.dev gst_all_1.gst-plugins-base ];
|
propagatedBuildInputs = [ glib.dev gst_all_1.gstreamer.dev gst_all_1.gst-plugins-base ];
|
||||||
|
|
||||||
CFLAGS_COMPILE = [
|
CFLAGS_COMPILE = [
|
||||||
|
|
|
@ -522,7 +522,9 @@ let
|
||||||
inherit (pkgs) gsl;
|
inherit (pkgs) gsl;
|
||||||
};
|
};
|
||||||
|
|
||||||
gstreamer = callPackage ../development/ocaml-modules/gstreamer { };
|
gstreamer = callPackage ../development/ocaml-modules/gstreamer {
|
||||||
|
inherit (pkgs.darwin.apple_sdk.frameworks) AppKit Foundation;
|
||||||
|
};
|
||||||
|
|
||||||
h2 = callPackage ../development/ocaml-modules/h2 { };
|
h2 = callPackage ../development/ocaml-modules/h2 { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue