2021-01-11 07:54:33 +00:00
|
|
|
{lib, stdenv, fetchurl, ocaml, findlib, easy-format}:
|
2017-10-06 20:23:12 +00:00
|
|
|
let
|
|
|
|
pname = "biniou";
|
|
|
|
version = "1.0.9";
|
|
|
|
webpage = "http://mjambon.com/${pname}.html";
|
|
|
|
in
|
|
|
|
|
2021-01-11 12:49:15 +00:00
|
|
|
assert lib.versionAtLeast (lib.getVersion ocaml) "3.11";
|
2017-10-06 20:23:12 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://mjambon.com/releases/${pname}/${name}.tar.gz";
|
|
|
|
sha256 = "14j3hrhbjqxbizr1pr8fcig9dmfzhbjjwzwyc99fcsdic67w8izb";
|
|
|
|
};
|
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib ];
|
|
|
|
buildInputs = [ easy-format ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
2017-10-06 20:23:12 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2017-10-06 20:23:12 +00:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
mkdir $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-10-06 20:23:12 +00:00
|
|
|
description = "A binary data format designed for speed, safety, ease of use and backward compatibility as protocols evolve";
|
2019-09-08 23:38:31 +00:00
|
|
|
homepage = webpage;
|
2017-10-06 20:23:12 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
|
|
|
platforms = ocaml.meta.platforms or [];
|
|
|
|
};
|
|
|
|
}
|