2014-07-03 11:09:47 +02:00
|
|
|
{stdenv, fetchurl, ocaml, findlib, easy-format}:
|
|
|
|
let
|
|
|
|
pname = "biniou";
|
|
|
|
version = "1.0.9";
|
|
|
|
webpage = "http://mjambon.com/${pname}.html";
|
|
|
|
in
|
2014-09-21 12:02:55 +02:00
|
|
|
|
|
|
|
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.11";
|
|
|
|
|
2014-07-03 11:09:47 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://mjambon.com/releases/${pname}/${name}.tar.gz";
|
|
|
|
sha256 = "14j3hrhbjqxbizr1pr8fcig9dmfzhbjjwzwyc99fcsdic67w8izb";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib easy-format ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
makeFlags = "PREFIX=$(out)";
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
mkdir $out/bin
|
|
|
|
'';
|
|
|
|
|
2014-09-21 12:02:55 +02:00
|
|
|
meta = with stdenv.lib; {
|
2014-07-03 11:09:47 +02:00
|
|
|
description = "A binary data format designed for speed, safety, ease of use and backward compatibility as protocols evolve";
|
|
|
|
homepage = "${webpage}";
|
2014-09-21 12:02:55 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2014-07-03 15:23:38 +02:00
|
|
|
platforms = ocaml.meta.platforms;
|
2014-07-03 11:09:47 +02:00
|
|
|
};
|
|
|
|
}
|