Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitHub, 4 buildDunePackage, 5 re, 6 uunf, 7 uuseg, 8 alcotest, 9}: 10 11buildDunePackage rec { 12 pname = "slug"; 13 version = "1.0.1"; 14 15 duneVersion = "3"; 16 17 src = fetchFromGitHub { 18 owner = "thangngoc89"; 19 repo = "ocaml-slug"; 20 rev = version; 21 sha256 = "sha256-pIk/0asSyibXbwmBSBuLwl2SS9aw6dNDDvwO+1VJGf8="; 22 }; 23 24 propagatedBuildInputs = [ 25 re 26 uunf 27 uuseg 28 ]; 29 30 doCheck = true; 31 checkInputs = [ alcotest ]; 32 33 meta = { 34 description = "Url safe slug generator for OCaml"; 35 license = lib.licenses.mit; 36 maintainers = [ lib.maintainers.niols ]; 37 homepage = "https://github.com/thangngoc89/ocaml-slug"; 38 }; 39}