2020-08-31 05:09:33 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub
|
|
|
|
, dune-configurator
|
|
|
|
, posix-socket
|
|
|
|
, srt
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "srt";
|
2021-10-30 20:05:24 +00:00
|
|
|
version = "0.2.1";
|
2020-08-31 05:09:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "savonet";
|
|
|
|
repo = "ocaml-srt";
|
|
|
|
rev = "v${version}";
|
2021-10-30 20:05:24 +00:00
|
|
|
sha256 = "sha256-rnM50IzeiKOrpFf79jTHp+fXn0tdx+vrLuD3kzqLh5g=";
|
2020-08-31 05:09:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ dune-configurator ];
|
|
|
|
propagatedBuildInputs = [ posix-socket srt ];
|
|
|
|
|
2021-10-30 20:05:24 +00:00
|
|
|
meta = with lib; {
|
2020-08-31 05:09:33 +00:00
|
|
|
description = "OCaml bindings for the libsrt library";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
inherit (src.meta) homepage;
|
2021-10-30 20:05:24 +00:00
|
|
|
maintainers = with maintainers; [ vbgl dandellion ];
|
2020-08-31 05:09:33 +00:00
|
|
|
};
|
|
|
|
}
|