ocamlPackages.angstrom: 0.8.1 -> 0.10.0
This commit is contained in:
parent
96b9fdaa35
commit
51d9081123
1 changed files with 6 additions and 4 deletions
|
@ -1,22 +1,24 @@
|
||||||
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, alcotest, result }:
|
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, alcotest, result
|
||||||
|
, bigstringaf
|
||||||
|
}:
|
||||||
|
|
||||||
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
|
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
|
||||||
then throw "angstrom is not available for OCaml ${ocaml.version}"
|
then throw "angstrom is not available for OCaml ${ocaml.version}"
|
||||||
else
|
else
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.8.1";
|
version = "0.10.0";
|
||||||
name = "ocaml${ocaml.version}-angstrom-${version}";
|
name = "ocaml${ocaml.version}-angstrom-${version}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "inhabitedtype";
|
owner = "inhabitedtype";
|
||||||
repo = "angstrom";
|
repo = "angstrom";
|
||||||
rev = "${version}";
|
rev = "${version}";
|
||||||
sha256 = "067r3vy5lac1bfx947gy722amna3dbcak54nlh24vx87pmcq31qc";
|
sha256 = "0lh6024yf9ds0nh9i93r9m6p5psi8nvrqxl5x7jwl13zb0r9xfpw";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib jbuilder alcotest ];
|
buildInputs = [ ocaml findlib jbuilder alcotest ];
|
||||||
propagatedBuildInputs = [ result ];
|
propagatedBuildInputs = [ bigstringaf result ];
|
||||||
|
|
||||||
buildPhase = "jbuilder build -p angstrom";
|
buildPhase = "jbuilder build -p angstrom";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue