From 114ea420db12a3a6fa19b6aadce52b25819c3481 Mon Sep 17 00:00:00 2001 From: Niols Date: Mon, 17 Apr 2023 17:17:27 +0100 Subject: [PATCH] ocamlPackages.slug: init at 1.0.1 --- .../ocaml-modules/slug/default.nix | 34 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/development/ocaml-modules/slug/default.nix diff --git a/pkgs/development/ocaml-modules/slug/default.nix b/pkgs/development/ocaml-modules/slug/default.nix new file mode 100644 index 000000000000..2ae81209b549 --- /dev/null +++ b/pkgs/development/ocaml-modules/slug/default.nix @@ -0,0 +1,34 @@ +{ 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"; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index ebf6ba6dc056..158bb01af8ab 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -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 { };