nixpkgs/pkgs/development/ocaml-modules/rope/default.nix
Vincent Laporte d74ed5ebb0
ocamlPackages.rope: refactor
- remove legacy version 0.5 (broken)
 - disable for OCaml ≥ 5.0
2023-05-31 11:45:07 +02:00

25 lines
703 B
Nix

{ lib, fetchurl, ocaml, buildDunePackage, benchmark }:
lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
"rope is not available for OCaml ${ocaml.version}"
buildDunePackage rec {
pname = "rope";
version = "0.6.2";
minimalOCamlVersion = "4.03";
src = fetchurl {
url = "https://github.com/Chris00/ocaml-rope/releases/download/${version}/rope-${version}.tbz";
sha256 = "15cvfa0s1vjx7gjd07d3fkznilishqf4z4h2q5f20wm9ysjh2h2i";
};
buildInputs = [ benchmark ] ;
meta = {
homepage = "https://github.com/Chris00/ocaml-rope";
description = "Ropes (heavyweight strings) in OCaml";
license = lib.licenses.lgpl21;
maintainers = with lib.maintainers; [ ];
};
}