3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/estring/default.nix
sternenseemann 4e42cac49d ocamlPackages: stdenv.lib → lib
This change was produced by searching for remaining occurrences of
stdenv.lib and replacing them manually.

Reference #108938.
2021-01-12 16:33:18 +01:00

22 lines
555 B
Nix

{ lib, buildOcaml, ocaml, fetchurl }:
if 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 lib; {
homepage = "http://estring.forge.ocamlcore.org/";
description = "Extension for string literals";
license = licenses.bsd3;
};
}