git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.qtest: 2.7 → 2.11
commit8409bdf80ab40a9002d41a24660f39df73a763a2 authorVincent Laporte <Vincent.Laporte@gmail.com> dateMon 21 Sep 2020, 22:03 (6 years ago) parent2be541f
1 file changed+14−20
pkgs/development/ocaml-modules/qtest/default.nix+14−20
pkgs/development/ocaml-modules/qtest/default.nix+14−20
@@ -1,28 +1,22 @@
1−{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, qcheck, ounit }:
1+{ lib, buildDunePackage, fetchFromGitHub, qcheck }:
22
3−if !stdenv.lib.versionAtLeast ocaml.version "4"
4−then throw "qtest is not available for OCaml ${ocaml.version}"
5−else
3+buildDunePackage rec {
4+ pname = "qtest";
5+ version = "2.11";
66
7−let version = "2.7"; in
8−
9−stdenv.mkDerivation {
10− name = "ocaml${ocaml.version}-qtest-${version}";
11− src = fetchzip {
12− url = "https://github.com/vincent-hugot/iTeML/archive/v${version}.tar.gz";
13− sha256 = "0z72m2drp67qchvsxx4sg2qjrrq8hp6p9kzdx16ibx58pvpw1sh2";
7+ src = fetchFromGitHub {
8+ owner = "vincent-hugot";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "10fi2093ny8pp3jsi1gdqsllp3lr4r5mfcs2hrm7qvbnhrdbb0g3";
1412 };
1513
16− buildInputs = [ ocaml findlib ocamlbuild ];
17− propagatedBuildInputs = [ qcheck ounit ];
18−
19− installFlags = [ "BIN=$(out)/bin" ];
20− preInstall = "mkdir -p $out/bin";
14+ propagatedBuildInputs = [ qcheck ];
2115
2216 meta = {
23− description = "Inline (Unit) Tests for OCaml (formerly “qtest”)";
24− homepage = "https://github.com/vincent-hugot/iTeML";
25− platforms = ocaml.meta.platforms or [];
26− maintainers = with stdenv.lib.maintainers; [ vbgl ];
17+ description = "Inline (Unit) Tests for OCaml";
18+ inherit (src.meta) homepage;
19+ maintainers = with lib.maintainers; [ vbgl ];
20+ license = lib.licenses.gpl3;
2721 };
2822}