at 24.11-pre 20 lines 609 B view raw
1{ lib, fetchurl, buildDunePackage, ocaml, alcotest }: 2 3buildDunePackage rec { 4 pname = "semver"; 5 version = "0.2.1"; 6 src = fetchurl { 7 url = "https://github.com/rgrinberg/ocaml-semver/releases/download/${version}/semver-${version}.tbz"; 8 hash = "sha256-CjzDUtoe5Hvt6zImb+EqVIulRUUUQd9MmuJ4BH/2mLg="; 9 }; 10 11 doCheck = lib.versionAtLeast ocaml.version "4.08"; 12 checkInputs = [ alcotest ]; 13 14 meta = { 15 homepage = "https://github.com/rgrinberg/ocaml-semver"; 16 description = "Semantic versioning module"; 17 license = lib.licenses.bsd3; 18 maintainers = [ lib.maintainers.ulrikstrid ]; 19 }; 20}