1{
2 lib,
3 buildDunePackage,
4 fetchFromGitHub,
5 dune-configurator,
6 pkg-config,
7 glib,
8 gst_all_1,
9}:
10
11buildDunePackage rec {
12 pname = "gstreamer";
13 version = "0.3.1";
14
15 src = fetchFromGitHub {
16 owner = "savonet";
17 repo = "ocaml-gstreamer";
18 rev = "v${version}";
19 sha256 = "0y8xi1q0ld4hrk96bn6jfh9slyjrxmnlhm662ynacp3yzalp8jji";
20 };
21
22 nativeBuildInputs = [ pkg-config ];
23 buildInputs = [ dune-configurator ];
24 propagatedBuildInputs = [
25 glib.dev
26 gst_all_1.gstreamer.dev
27 gst_all_1.gst-plugins-base
28 ];
29
30 CFLAGS_COMPILE = [
31 "-I${glib.dev}/include/glib-2.0"
32 "-I${glib.out}/lib/glib-2.0/include"
33 "-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0"
34 "-I${gst_all_1.gstreamer.dev}/include/gstreamer-1.0"
35 ];
36
37 meta = with lib; {
38 homepage = "https://github.com/savonet/ocaml-gstreamer";
39 description = "Bindings for the GStreamer library which provides functions for playning and manipulating multimedia streams";
40 license = licenses.lgpl21Only;
41 maintainers = with maintainers; [ dandellion ];
42 };
43}