about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/estring/default.nix
blob: 4cd27f272b3c86049636691c224677ad14a25a01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ stdenv, buildOcaml, ocaml, fetchurl }:

if stdenv.lib.versionAtLeast ocaml.version "4.06"
then throw "estring is not available for OCaml ${ocaml.version}"
else

buildOcaml rec {
  name = "estring";
  version = "1.3";

  src = fetchurl {
    url = "https://forge.ocamlcore.org/frs/download.php/1012/estring-${version}.tar.gz";
    sha256 = "0b6znz5igm8pp28w4b7sgy82rpd9m5aw6ss933rfbw1mrh05gvcg";
  };

  meta = with stdenv.lib; {
    homepage = "http://estring.forge.ocamlcore.org/";
    description = "Extension for string literals";
    license = licenses.bsd3;
  };
}