Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at flake-libs 26 lines 620 B view raw
1{ 2 lib, 3 fetchurl, 4 buildDunePackage, 5 ocaml, 6 alcotest, 7}: 8 9buildDunePackage rec { 10 pname = "semver"; 11 version = "0.2.1"; 12 src = fetchurl { 13 url = "https://github.com/rgrinberg/ocaml-semver/releases/download/${version}/semver-${version}.tbz"; 14 hash = "sha256-CjzDUtoe5Hvt6zImb+EqVIulRUUUQd9MmuJ4BH/2mLg="; 15 }; 16 17 doCheck = lib.versionAtLeast ocaml.version "4.08"; 18 checkInputs = [ alcotest ]; 19 20 meta = { 21 homepage = "https://github.com/rgrinberg/ocaml-semver"; 22 description = "Semantic versioning module"; 23 license = lib.licenses.bsd3; 24 maintainers = [ lib.maintainers.ulrikstrid ]; 25 }; 26}