git.iko.soy/typeable/nixpkgs
on master help sign in
Add bisect_ppx and bisect_ppx-ocamlbuild
commit7621523fc19d76a6fe8715a25159557b872fc6af authorJoachim Breitner <mail@joachim-breitner.de> dateFri 30 Nov 2018, 12:46 (8 years ago) parent22e95af
3 files changed+68
pkgs/development/ocaml-modules/bisect_ppx-ocamlbuild/default.nix+32 pkgs/development/ocaml-modules/bisect_ppx/default.nix+33 pkgs/top-level/ocaml-packages.nix+3
pkgs/development/ocaml-modules/bisect_ppx-ocamlbuild/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ stdenv, fetchFromGitHub, ocaml, dune, findlib, ocamlbuild }:
2+
3+let version = "1.4.0"; in
4+
5+stdenv.mkDerivation {
6+ name = "ocaml${ocaml.version}-bisect_ppx-ocamlbuild-${version}";
7+
8+ src = fetchFromGitHub {
9+ owner = "aantron";
10+ repo = "bisect_ppx";
11+ rev = version;
12+ sha256 = "1plhm4pvrhpapz5zaks194ji1fgzmp13y942g10pbn9m7kgkqg4h";
13+ };
14+
15+ buildInputs = [
16+ ocaml
17+ dune
18+ findlib
19+ ocamlbuild
20+ ];
21+
22+ buildPhase = "dune build -p bisect_ppx-ocamlbuild";
23+
24+ inherit (dune) installPhase;
25+
26+ meta = {
27+ homepage = https://github.com/aantron/bisect_ppx;
28+ platforms = ocaml.meta.platforms or [];
29+ description = "Code coverage for OCaml";
30+ license = stdenv.lib.licenses.mpl20;
31+ };
32+}
pkgs/development/ocaml-modules/bisect_ppx/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{ stdenv, fetchFromGitHub, ocaml, dune, findlib, ocaml-migrate-parsetree, ppx_tools_versioned }:
2+
3+let version = "1.4.0"; in
4+
5+stdenv.mkDerivation {
6+ name = "ocaml${ocaml.version}-bisect_ppx-${version}";
7+
8+ src = fetchFromGitHub {
9+ owner = "aantron";
10+ repo = "bisect_ppx";
11+ rev = version;
12+ sha256 = "1plhm4pvrhpapz5zaks194ji1fgzmp13y942g10pbn9m7kgkqg4h";
13+ };
14+
15+ buildInputs = [
16+ ocaml
17+ dune
18+ findlib
19+ ocaml-migrate-parsetree
20+ ppx_tools_versioned
21+ ];
22+
23+ buildPhase = "dune build -p bisect_ppx";
24+
25+ inherit (dune) installPhase;
26+
27+ meta = {
28+ homepage = https://github.com/aantron/bisect_ppx;
29+ platforms = ocaml.meta.platforms or [];
30+ description = "Code coverage for OCaml";
31+ license = stdenv.lib.licenses.mpl20;
32+ };
33+}
pkgs/top-level/ocaml-packages.nix+3
@@ -131,6 +131,9 @@ let
131131
132132 bin_prot_p4 = callPackage ../development/ocaml-modules/bin_prot { };
133133
134+ bisect_ppx = callPackage ../development/ocaml-modules/bisect_ppx { };
135+ bisect_ppx-ocamlbuild = callPackage ../development/ocaml-modules/bisect_ppx-ocamlbuild { };
136+
134137 ocaml_cairo = callPackage ../development/ocaml-modules/ocaml-cairo { };
135138
136139 cairo2 = callPackage ../development/ocaml-modules/cairo2 { };