Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bisect_ppx and bisect_ppx-ocamlbuild
- Loading branch information
Showing
3 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
pkgs/development/ocaml-modules/bisect_ppx-ocamlbuild/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters