ocamlPackages.gstreamer: fix build on darwin
This commit is contained in:
parent
0a29695c1f
commit
5c304acd43
2 changed files with 5 additions and 3 deletions
|
@ -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 {
|
||||
pname = "gstreamer";
|
||||
|
@ -12,7 +12,7 @@ buildDunePackage rec {
|
|||
};
|
||||
|
||||
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 ];
|
||||
|
||||
CFLAGS_COMPILE = [
|
||||
|
|
|
@ -522,7 +522,9 @@ let
|
|||
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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue