Skip to content

Commit

Permalink
ocamlPackages.angstrom: use Dune 2
Browse files Browse the repository at this point in the history
  • Loading branch information
vbgl committed Dec 1, 2020
1 parent 38a91df commit 9e66b4e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkgs/development/ocaml-modules/angstrom-async/default.nix
Expand Up @@ -3,7 +3,7 @@
buildDunePackage rec {
pname = "angstrom-async";

inherit (angstrom) version src;
inherit (angstrom) version useDune2 src;

minimumOCamlVersion = "4.04.1";

Expand Down
Expand Up @@ -3,7 +3,7 @@
buildDunePackage rec {
pname = "angstrom-lwt-unix";

inherit (angstrom) version src;
inherit (angstrom) version useDune2 src;

minimumOCamlVersion = "4.03";

Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/ocaml-modules/angstrom-unix/default.nix
Expand Up @@ -3,7 +3,7 @@
buildDunePackage rec {
pname = "angstrom-unix";

inherit (angstrom) version src;
inherit (angstrom) version useDune2 src;

minimumOCamlVersion = "4.03";

Expand Down
4 changes: 3 additions & 1 deletion pkgs/development/ocaml-modules/angstrom/default.nix
@@ -1,8 +1,9 @@
{ lib, fetchFromGitHub, buildDunePackage, ocaml, alcotest, result, bigstringaf, ppx_let }:
{ lib, fetchFromGitHub, buildDunePackage, ocaml, ocaml-syntax-shims, alcotest, result, bigstringaf, ppx_let }:

buildDunePackage rec {
pname = "angstrom";
version = "0.15.0";
useDune2 = true;

minimumOCamlVersion = "4.04";

Expand All @@ -14,6 +15,7 @@ buildDunePackage rec {
};

checkInputs = [ alcotest ppx_let ];
buildInputs = [ ocaml-syntax-shims ];
propagatedBuildInputs = [ bigstringaf result ];
doCheck = lib.versionAtLeast ocaml.version "4.05";

Expand Down

0 comments on commit 9e66b4e

Please sign in to comment.