nixpkgs/pkgs/development/ocaml-modules/biniou/default.nix

31 lines
799 B
Nix
Raw Normal View History

2018-09-05 17:11:47 +01:00
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, easy-format }:
2014-07-03 10:09:47 +01:00
stdenv.mkDerivation rec {
2018-03-01 16:48:10 +00:00
version = "1.2.0";
name = "ocaml${ocaml.version}-biniou-${version}";
src = fetchFromGitHub {
owner = "mjambon";
repo = "biniou";
rev = "v${version}";
sha256 = "0mjpgwyfq2b2izjw0flmlpvdjgqpq8shs89hxj1np2r50csr8dcb";
};
2017-10-06 21:23:12 +01:00
2018-09-05 17:11:47 +01:00
buildInputs = [ ocaml findlib dune ];
2017-10-06 21:23:12 +01:00
2018-03-01 16:48:10 +00:00
propagatedBuildInputs = [ easy-format ];
2017-10-06 21:23:12 +01:00
2018-03-01 16:48:10 +00:00
postPatch = ''
patchShebangs .
'';
2017-10-06 21:23:12 +01:00
2018-09-05 17:11:47 +01:00
inherit (dune) installPhase;
2018-03-01 16:48:10 +00:00
meta = {
inherit (src.meta) homepage;
inherit (ocaml.meta) platforms;
description = "Binary data format designed for speed, safety, ease of use and backward compatibility as protocols evolve";
maintainers = [ stdenv.lib.maintainers.vbgl ];
license = stdenv.lib.licenses.bsd3;
};
2014-07-03 10:09:47 +01:00
}