diff options
author | superherointj <5861043+superherointj@users.noreply.github.com> | 2021-06-02 12:48:35 -0300 |
---|---|---|
committer | sterni <sternenseemann@systemli.org> | 2021-06-02 18:13:07 +0200 |
commit | 60f5a3c18d1b2f0b649531a836754dc73f52ecbf (patch) | |
tree | 37cd28113291d071ff071de1283e3b175664d900 /pkgs/development/ocaml-modules/junit | |
parent | bf00839d045cde8c95239a424d36f5ac0af6b9fd (diff) |
ocamlPackages.junit: init 2.0.2
ocamlPackages.junit_ounit: init 2.0.2 ocamlPackages.junit_alcotest: init 2.0.2
Diffstat (limited to 'pkgs/development/ocaml-modules/junit')
-rw-r--r-- | pkgs/development/ocaml-modules/junit/alcotest.nix | 14 | ||||
-rw-r--r-- | pkgs/development/ocaml-modules/junit/default.nix | 26 | ||||
-rw-r--r-- | pkgs/development/ocaml-modules/junit/ounit.nix | 14 |
3 files changed, 54 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/junit/alcotest.nix b/pkgs/development/ocaml-modules/junit/alcotest.nix new file mode 100644 index 0000000000000..85abaf7f872b1 --- /dev/null +++ b/pkgs/development/ocaml-modules/junit/alcotest.nix @@ -0,0 +1,14 @@ +{ buildDunePackage, junit, alcotest }: + +buildDunePackage ({ + pname = "junit_alcotest"; + + inherit (junit) src version meta useDune2; + + propagatedBuildInputs = [ + junit + alcotest + ]; + + doCheck = false; # 2 tests fail: 1) "Test with unexpected exception"; 2) "with wrong result"; +}) diff --git a/pkgs/development/ocaml-modules/junit/default.nix b/pkgs/development/ocaml-modules/junit/default.nix new file mode 100644 index 0000000000000..c91625e823b0d --- /dev/null +++ b/pkgs/development/ocaml-modules/junit/default.nix @@ -0,0 +1,26 @@ +{ lib, fetchurl, buildDunePackage, ptime, tyxml }: + +buildDunePackage (rec { + pname = "junit"; + version = "2.0.2"; + + src = fetchurl { + url = "https://github.com/Khady/ocaml-junit/releases/download/${version}/junit-${version}.tbz"; + sha256 = "00bbx5j8vsy9fqbc04xa3lsalaxicirmbczr65bllfk1afv43agx"; + }; + + propagatedBuildInputs = [ + ptime + tyxml + ]; + + useDune2 = true; + doCheck = true; + + meta = with lib; { + description = "ocaml-junit is an OCaml package for the creation of JUnit XML reports, proving a typed API to produce valid reports acceptable to Jenkins, comes with packages supporting OUnit and Alcotest."; + license = licenses.gpl3; + maintainers = with maintainers; [ superherointj ]; + homepage = "https://github.com/Khady/ocaml-junit"; + }; +}) diff --git a/pkgs/development/ocaml-modules/junit/ounit.nix b/pkgs/development/ocaml-modules/junit/ounit.nix new file mode 100644 index 0000000000000..5f261b07236f8 --- /dev/null +++ b/pkgs/development/ocaml-modules/junit/ounit.nix @@ -0,0 +1,14 @@ +{ buildDunePackage, junit, ounit }: + +buildDunePackage ({ + pname = "junit_ounit"; + + inherit (junit) src version meta useDune2; + + propagatedBuildInputs = [ + junit + ounit + ]; + + doCheck = true; +}) |