nixpkgs/pkgs/development/ocaml-modules/stringext/default.nix

27 lines
748 B
Nix
Raw Normal View History

{ lib, fetchurl, ocaml, buildDunePackage, ounit, qtest
2015-07-01 18:19:50 +00:00
# Optionally enable tests; test script use OCaml-4.01+ features
, doCheck ? lib.versionAtLeast ocaml.version "4.08"
2015-07-01 18:19:50 +00:00
}:
let version = "1.6.0"; in
buildDunePackage {
pname = "stringext";
version = version;
useDune2 = true;
src = fetchurl {
url = "https://github.com/rgrinberg/stringext/releases/download/${version}/stringext-${version}.tbz";
sha256 = "1sh6nafi3i9773j5mlwwz3kxfzdjzsfqj2qibxhigawy5vazahfv";
};
checkInputs = [ ounit qtest ];
2015-07-01 18:19:50 +00:00
inherit doCheck;
meta = {
homepage = "https://github.com/rgrinberg/stringext";
description = "Extra string functions for OCaml";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ vbgl ];
};
}