2020-08-31 05:09:33 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub
|
|
|
|
, dune-configurator
|
|
|
|
, posix-socket
|
|
|
|
, srt
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "srt";
|
2023-03-04 17:02:09 +00:00
|
|
|
version = "0.3.0";
|
|
|
|
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
duneVersion = "3";
|
2020-08-31 05:09:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "savonet";
|
|
|
|
repo = "ocaml-srt";
|
|
|
|
rev = "v${version}";
|
2023-03-04 17:02:09 +00:00
|
|
|
sha256 = "sha256-iD18bCbouBuMpuSzruDZJoYz2YyN080RK8BavUF3beY=";
|
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
|
|
|
};
|
|
|
|
}
|