ocamlModules.biniou: fix build

This commit is contained in:
Robin Gloster 2018-03-01 17:48:10 +01:00
parent 4cd5eaedf1
commit 8d3aa2f2b9
No known key found for this signature in database
GPG Key ID: D5C458DF6DD97EDF

View File

@ -1,26 +1,30 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, easy-format }: { stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, easy-format }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "1.2.0"; version = "1.2.0";
name = "ocaml${ocaml.version}-biniou-${version}"; name = "ocaml${ocaml.version}-biniou-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mjambon"; owner = "mjambon";
repo = "biniou"; repo = "biniou";
rev = "v${version}"; rev = "v${version}";
sha256 = "0mjpgwyfq2b2izjw0flmlpvdjgqpq8shs89hxj1np2r50csr8dcb"; sha256 = "0mjpgwyfq2b2izjw0flmlpvdjgqpq8shs89hxj1np2r50csr8dcb";
}; };
buildInputs = [ ocaml findlib jbuilder ]; buildInputs = [ ocaml findlib jbuilder ];
propagatedBuildInputs = [ easy-format ]; propagatedBuildInputs = [ easy-format ];
inherit (jbuilder) installPhase; postPatch = ''
patchShebangs .
'';
meta = { inherit (jbuilder) installPhase;
inherit (src.meta) homepage;
inherit (ocaml.meta) platforms; meta = {
description = "Binary data format designed for speed, safety, ease of use and backward compatibility as protocols evolve"; inherit (src.meta) homepage;
maintainers = [ stdenv.lib.maintainers.vbgl ]; inherit (ocaml.meta) platforms;
license = stdenv.lib.licenses.bsd3; 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;
};
} }