depot/pkgs/development/ocaml-modules/stringext/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

26 lines
750 B
Nix

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