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