41 lines
720 B
Nix
41 lines
720 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
buildDunePackage,
|
||
|
|
fetchFromGitHub,
|
||
|
|
dune-configurator,
|
||
|
|
posix-socket,
|
||
|
|
srt,
|
||
|
|
ctypes-foreign,
|
||
|
|
}:
|
||
|
|
|
||
|
|
buildDunePackage rec {
|
||
|
|
pname = "srt";
|
||
|
|
version = "0.3.3";
|
||
|
|
|
||
|
|
minimalOCamlVersion = "4.12";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "savonet";
|
||
|
|
repo = "ocaml-srt";
|
||
|
|
rev = "v${version}";
|
||
|
|
hash = "sha256-FVgOEBPYZz7SQ5c6mLAssDwY1NuXsV3ghP7OyLRd9Kw=";
|
||
|
|
};
|
||
|
|
|
||
|
|
buildInputs = [ dune-configurator ];
|
||
|
|
propagatedBuildInputs = [
|
||
|
|
ctypes-foreign
|
||
|
|
posix-socket
|
||
|
|
srt
|
||
|
|
];
|
||
|
|
|
||
|
|
meta = {
|
||
|
|
description = "OCaml bindings for the libsrt library";
|
||
|
|
license = lib.licenses.gpl2Plus;
|
||
|
|
inherit (src.meta) homepage;
|
||
|
|
maintainers = with lib.maintainers; [
|
||
|
|
vbgl
|
||
|
|
dandellion
|
||
|
|
];
|
||
|
|
};
|
||
|
|
}
|