git.iko.soy/typeable/nixpkgs
on master help sign in
ocaml-stringext: 1.3.0 -> 1.4.0
commit9a97c3c7aed398d1d86f93a817f3cdf7ea1a3d85 authorVincent Laporte <Vincent.Laporte@gmail.com> dateWed 1 Jul 2015, 20:19 (11 years ago) parentdab5725
1 file changed+11−5
pkgs/development/ocaml-modules/stringext/default.nix+11−5
pkgs/development/ocaml-modules/stringext/default.nix+11−5
@@ -1,19 +1,25 @@
1−{ stdenv, fetchzip, ocaml, findlib }:
1+{ stdenv, fetchzip, ocaml, findlib, ounit, qcheck
2+# Optionally enable tests; test script use OCaml-4.01+ features
3+, doCheck ? stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.01"
4+}:
25
3−let version = "1.3.0"; in
6+let version = "1.4.0"; in
47
58stdenv.mkDerivation {
69 name = "ocaml-stringext-${version}";
710
811 src = fetchzip {
912 url = "https://github.com/rgrinberg/stringext/archive/v${version}.tar.gz";
10− sha256 = "0sd1chyxclmip0nxqhasp1ri91bwxr8nszkkr5kpja45f6bav6k9";
13+ sha256 = "1jp0x9rkss8a48z9wbnc4v5zvmnysin30345psl3xnxb2aqzwlii";
1114 };
1215
13− buildInputs = [ ocaml findlib ];
16+ buildInputs = [ ocaml findlib ounit qcheck ];
1417
15− configurePhase = "ocaml setup.ml -configure --prefix $out";
18+ configurePhase = "ocaml setup.ml -configure --prefix $out"
19+ + stdenv.lib.optionalString doCheck " --enable-tests";
1620 buildPhase = "ocaml setup.ml -build";
21+ inherit doCheck;
22+ checkPhase = "ocaml setup.ml -test";
1723 installPhase = "ocaml setup.ml -install";
1824
1925 createFindlibDestdir = true;