Unverified Commit 114ea420 authored by Niols's avatar Niols
Browse files

ocamlPackages.slug: init at 1.0.1

parent f00994e7
Loading
Loading
Loading
Loading
+34 −0
Original line number Diff line number Diff line
{ lib, fetchFromGitHub, buildDunePackage
, re, uunf, uuseg
, alcotest
}:

buildDunePackage rec {
  pname = "slug";
  version = "1.0.1";

  duneVersion = "3";

  src = fetchFromGitHub {
    owner = "thangngoc89";
    repo = "ocaml-slug";
    rev = version;
    sha256 = "sha256-pIk/0asSyibXbwmBSBuLwl2SS9aw6dNDDvwO+1VJGf8=";
  };

  propagatedBuildInputs = [
    re
    uunf
    uuseg
  ];

  doCheck = true;
  checkInputs = [ alcotest ];

  meta = {
    description = "Url safe slug generator for OCaml";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.niols ];
    homepage = "https://github.com/thangngoc89/ocaml-slug";
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -1496,6 +1496,8 @@ let

    simple-diff = callPackage ../development/ocaml-modules/simple-diff { };

    slug = callPackage ../development/ocaml-modules/slug {  };

    sodium = callPackage ../development/ocaml-modules/sodium { };

    sosa = callPackage ../development/ocaml-modules/sosa { };