nixpkgs-suyu/pkgs/development/ocaml-modules/biniou/1.0.nix

37 lines
894 B
Nix
Raw Normal View History

{lib, stdenv, fetchurl, ocaml, findlib, easy-format}:
2017-10-06 22:23:12 +02:00
let
pname = "biniou";
version = "1.0.9";
webpage = "http://mjambon.com/${pname}.html";
in
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.11";
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)" ];
2017-10-06 22:23:12 +02:00
preBuild = ''
mkdir $out/bin
'';
meta = with lib; {
2017-10-06 22:23:12 +02:00
description = "A binary data format designed for speed, safety, ease of use and backward compatibility as protocols evolve";
2019-09-09 01:38:31 +02:00
homepage = webpage;
2017-10-06 22:23:12 +02:00
license = licenses.bsd3;
maintainers = [ maintainers.vbgl ];
platforms = ocaml.meta.platforms or [];
};
}