biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / ocaml-modules / gstreamer / default.nix
blob34407299914a5b055cdc55b9131f15cf63f2a169
1 { lib, stdenv, buildDunePackage, fetchFromGitHub, dune-configurator, AppKit, Foundation, pkg-config, glib, gst_all_1 }:
3 buildDunePackage rec {
4   pname = "gstreamer";
5   version = "0.3.1";
7   src = fetchFromGitHub {
8     owner = "savonet";
9     repo = "ocaml-gstreamer";
10     rev = "v${version}";
11     sha256 = "0y8xi1q0ld4hrk96bn6jfh9slyjrxmnlhm662ynacp3yzalp8jji";
12   };
14   nativeBuildInputs = [ pkg-config ];
15   buildInputs = [ dune-configurator ] ++ lib.optionals stdenv.isDarwin [ AppKit Foundation ];
16   propagatedBuildInputs = [ glib.dev gst_all_1.gstreamer.dev gst_all_1.gst-plugins-base ];
18   CFLAGS_COMPILE = [
19     "-I${glib.dev}/include/glib-2.0"
20     "-I${glib.out}/lib/glib-2.0/include"
21     "-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0"
22     "-I${gst_all_1.gstreamer.dev}/include/gstreamer-1.0"
23   ];
25   meta = with lib; {
26     homepage = "https://github.com/savonet/ocaml-gstreamer";
27     description = "Bindings for the GStreamer library which provides functions for playning and manipulating multimedia streams";
28     license = licenses.lgpl21Only;
29     maintainers = with maintainers; [ dandellion ];
30   };