diff options
author | sternenseemann <git@lukasepple.de> | 2016-11-03 02:12:14 +0100 |
---|---|---|
committer | vbgl <vbgl@users.noreply.github.com> | 2016-11-05 10:04:18 +0100 |
commit | 37a47c1970c94215bbeac2e24d60772e500b00b6 (patch) | |
tree | 411c89fdf3310609901cbc78d38c80afba9b9cfb /pkgs/development/ocaml-modules/astring | |
parent | c6fcd28e2d47b106df493d5ed9b36ed81990ae4a (diff) | |
download | nixlib-37a47c1970c94215bbeac2e24d60772e500b00b6.tar nixlib-37a47c1970c94215bbeac2e24d60772e500b00b6.tar.gz nixlib-37a47c1970c94215bbeac2e24d60772e500b00b6.tar.bz2 nixlib-37a47c1970c94215bbeac2e24d60772e500b00b6.tar.lz nixlib-37a47c1970c94215bbeac2e24d60772e500b00b6.tar.xz nixlib-37a47c1970c94215bbeac2e24d60772e500b00b6.tar.zst nixlib-37a47c1970c94215bbeac2e24d60772e500b00b6.zip |
ocaml-astring: init at 0.8.3
Diffstat (limited to 'pkgs/development/ocaml-modules/astring')
-rw-r--r-- | pkgs/development/ocaml-modules/astring/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/astring/default.nix b/pkgs/development/ocaml-modules/astring/default.nix new file mode 100644 index 000000000000..d172b0f74639 --- /dev/null +++ b/pkgs/development/ocaml-modules/astring/default.nix @@ -0,0 +1,43 @@ +{stdenv, fetchurl, buildOcaml, ocaml, findlib, ocamlbuild, topkg, opam}: + +buildOcaml rec { + version = "0.8.3"; + name = "astring"; + + src = fetchurl { + url = "http://erratique.ch/software/astring/releases/astring-${version}.tbz"; + sha256 = "0ixjwc3plrljvj24za3l9gy0w30lsbggp8yh02lwrzw61ls4cri0"; + }; + + unpackCmd = "tar -xf $curSrc"; + + buildInputs = [ ocaml findlib ocamlbuild topkg opam ]; + + buildPhase = '' + ocaml -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib/ pkg/pkg.ml build + ''; + + installPhase = '' + opam-installer --script --prefix=$out astring.install | sh + ln -s $out/lib/astring $out/lib/ocaml/${ocaml.version}/site-lib/ + ''; + + meta = { + homepage = http://erratique.ch/software/astring; + description = "Alternative String module for OCaml"; + longDescription = '' + Astring exposes an alternative String module for OCaml. This module tries + to balance minimality and expressiveness for basic, index-free, string + processing and provides types and functions for substrings, string sets + and string maps. + + Remaining compatible with the OCaml String module is a non-goal. + The String module exposed by Astring has exception safe functions, removes + deprecated and rarely used functions, alters some signatures and names, + adds a few missing functions and fully exploits OCaml's newfound string + immutability. + ''; + license = stdenv.lib.licenses.isc; + maintainers = with stdenv.lib.maintainers; [ sternenseemann ]; + }; +} |