1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/development/ocaml-modules/re/default.nix

29 lines
860 B
Nix
Raw Normal View History

2015-07-01 19:16:50 +01:00
{ stdenv, fetchzip, ocaml, findlib, ounit }:
stdenv.mkDerivation rec {
2015-07-01 19:16:50 +01:00
name = "ocaml-re-1.4.1";
2015-03-19 18:13:39 +00:00
src = fetchzip {
url = "https://github.com/ocaml/ocaml-re/archive/${name}.tar.gz";
2015-07-01 19:16:50 +01:00
sha256 = "1wmfgazydd20hc796zisqpmsw0sb5lv9g3x77ckmf50v3z8hyhvk";
};
2015-07-01 19:16:50 +01:00
buildInputs = [ ocaml findlib ounit ];
2015-07-01 19:16:50 +01:00
configurePhase = "ocaml setup.ml -configure --prefix $out --enable-tests";
buildPhase = "ocaml setup.ml -build";
2015-07-01 19:16:50 +01:00
doCheck = true;
checkPhase = "ocaml setup.ml -test";
installPhase = "ocaml setup.ml -install";
createFindlibDestdir = true;
meta = {
homepage = https://github.com/ocaml/ocaml-re;
platforms = ocaml.meta.platforms;
description = "Pure OCaml regular expressions, with support for Perl and POSIX-style strings";
license = stdenv.lib.licenses.lgpl2;
maintainers = with stdenv.lib.maintainers; [ vbgl ];
};
}