Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildDunePackage, 4 fetchFromGitHub, 5 dune-configurator, 6 posix-socket, 7 srt, 8 ctypes-foreign, 9}: 10 11buildDunePackage rec { 12 pname = "srt"; 13 version = "0.3.3"; 14 15 minimalOCamlVersion = "4.12"; 16 17 src = fetchFromGitHub { 18 owner = "savonet"; 19 repo = "ocaml-srt"; 20 rev = "v${version}"; 21 hash = "sha256-FVgOEBPYZz7SQ5c6mLAssDwY1NuXsV3ghP7OyLRd9Kw="; 22 }; 23 24 buildInputs = [ dune-configurator ]; 25 propagatedBuildInputs = [ 26 ctypes-foreign 27 posix-socket 28 srt 29 ]; 30 31 meta = { 32 description = "OCaml bindings for the libsrt library"; 33 license = lib.licenses.gpl2Plus; 34 inherit (src.meta) homepage; 35 maintainers = with lib.maintainers; [ 36 vbgl 37 dandellion 38 ]; 39 }; 40}