Skip to content

Commit

Permalink
Add bisect_ppx and bisect_ppx-ocamlbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
nomeata committed Nov 30, 2018
1 parent 22e95af commit 7621523
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
32 changes: 32 additions & 0 deletions pkgs/development/ocaml-modules/bisect_ppx-ocamlbuild/default.nix
@@ -0,0 +1,32 @@
{ stdenv, fetchFromGitHub, ocaml, dune, findlib, ocamlbuild }:

let version = "1.4.0"; in

stdenv.mkDerivation {
name = "ocaml${ocaml.version}-bisect_ppx-ocamlbuild-${version}";

src = fetchFromGitHub {
owner = "aantron";
repo = "bisect_ppx";
rev = version;
sha256 = "1plhm4pvrhpapz5zaks194ji1fgzmp13y942g10pbn9m7kgkqg4h";
};

buildInputs = [
ocaml
dune
findlib
ocamlbuild
];

buildPhase = "dune build -p bisect_ppx-ocamlbuild";

inherit (dune) installPhase;

meta = {
homepage = https://github.com/aantron/bisect_ppx;
platforms = ocaml.meta.platforms or [];
description = "Code coverage for OCaml";
license = stdenv.lib.licenses.mpl20;
};
}
33 changes: 33 additions & 0 deletions pkgs/development/ocaml-modules/bisect_ppx/default.nix
@@ -0,0 +1,33 @@
{ stdenv, fetchFromGitHub, ocaml, dune, findlib, ocaml-migrate-parsetree, ppx_tools_versioned }:

let version = "1.4.0"; in

stdenv.mkDerivation {
name = "ocaml${ocaml.version}-bisect_ppx-${version}";

src = fetchFromGitHub {
owner = "aantron";
repo = "bisect_ppx";
rev = version;
sha256 = "1plhm4pvrhpapz5zaks194ji1fgzmp13y942g10pbn9m7kgkqg4h";
};

buildInputs = [
ocaml
dune
findlib
ocaml-migrate-parsetree
ppx_tools_versioned
];

buildPhase = "dune build -p bisect_ppx";

inherit (dune) installPhase;

meta = {
homepage = https://github.com/aantron/bisect_ppx;
platforms = ocaml.meta.platforms or [];
description = "Code coverage for OCaml";
license = stdenv.lib.licenses.mpl20;
};
}
3 changes: 3 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Expand Up @@ -131,6 +131,9 @@ let

bin_prot_p4 = callPackage ../development/ocaml-modules/bin_prot { };

bisect_ppx = callPackage ../development/ocaml-modules/bisect_ppx { };
bisect_ppx-ocamlbuild = callPackage ../development/ocaml-modules/bisect_ppx-ocamlbuild { };

ocaml_cairo = callPackage ../development/ocaml-modules/ocaml-cairo { };

cairo2 = callPackage ../development/ocaml-modules/cairo2 { };
Expand Down

0 comments on commit 7621523

Please sign in to comment.