summaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/slug/default.nix
blob: 55657d32c454f768d62ae98c0e93fa0f0e2fbf5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
  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";
  };
}