ocamlPackages.gstreamer: fix build on darwin

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

View File

@ -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 = [

View File

@ -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 { };