2020-09-25 04:45:31 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub
|
|
|
|
, dune-configurator
|
|
|
|
, posix-socket
|
|
|
|
, srt
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "srt";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "0.2.1";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "savonet";
|
|
|
|
repo = "ocaml-srt";
|
|
|
|
rev = "v${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "sha256-rnM50IzeiKOrpFf79jTHp+fXn0tdx+vrLuD3kzqLh5g=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ dune-configurator ];
|
|
|
|
propagatedBuildInputs = [ posix-socket srt ];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
meta = with lib; {
|
2020-09-25 04:45:31 +00:00
|
|
|
description = "OCaml bindings for the libsrt library";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
inherit (src.meta) homepage;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ vbgl dandellion ];
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|