aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/biniou
diff options
context:
space:
mode:
authorVincent Laporte <vincent.laporte@gmail.com>2014-07-03 11:09:47 +0200
committerVincent Laporte <vincent.laporte@gmail.com>2014-07-03 11:09:47 +0200
commit543f355883c8d7717ad9b028125a99bb978910b6 (patch)
tree0233f15f4e1db592d4483ca5fa5949fb26b72c1c /pkgs/development/ocaml-modules/biniou
parent795ae344e35742bc55454643d7479072c622553c (diff)
Adds biniou
Diffstat (limited to 'pkgs/development/ocaml-modules/biniou')
-rw-r--r--pkgs/development/ocaml-modules/biniou/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/biniou/default.nix b/pkgs/development/ocaml-modules/biniou/default.nix
new file mode 100644
index 000000000000..f0a1ee102088
--- /dev/null
+++ b/pkgs/development/ocaml-modules/biniou/default.nix
@@ -0,0 +1,31 @@
+{stdenv, fetchurl, ocaml, findlib, easy-format}:
+let
+ pname = "biniou";
+ version = "1.0.9";
+ webpage = "http://mjambon.com/${pname}.html";
+in
+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
+ '';
+
+ meta = {
+ description = "A binary data format designed for speed, safety, ease of use and backward compatibility as protocols evolve";
+ homepage = "${webpage}";
+ license = "bsd";
+ };
+}