diff --git a/ocaml-pkgs/ubase.nix b/ocaml-pkgs/ubase.nix new file mode 100644 index 0000000..d873952 --- /dev/null +++ b/ocaml-pkgs/ubase.nix @@ -0,0 +1,36 @@ +{ + lib, + buildDunePackage, + fetchFromGitHub, +}: + +buildDunePackage rec { + pname = "ubase"; + version = "0.20"; + + minimalOCamlVersion = "4.14"; + duneVersion = "3"; + + src = fetchFromGitHub { + owner = "sanette"; + repo = "ubase"; + rev = version; + hash = "sha256-zmYjWEk0r1h87RczCJu2tYlS79F/pAiBt16BplPmA7c="; + }; + + propagatedBuildInputs = [ ]; + + doCheck = true; + checkInputs = [ + ]; + + meta = { + description = "Remove accents from utf8 strings"; + homepage = "https://github.com/sanette/ubase"; + changelog = "https://github.com/sanette/ubase/blob/${src.rev}/CHANGES.md"; + license = lib.licenses.lgpl3; + maintainers = with lib.maintainers; [ ]; + mainProgram = "ubase"; + platforms = lib.platforms.all; + }; +} diff --git a/overlay.nix b/overlay.nix index e6af158..c9c92e7 100644 --- a/overlay.nix +++ b/overlay.nix @@ -17,4 +17,8 @@ mkGeneralOverlay ./pkgs final prev xml = import ./xml.nix { pkgs = final; }; }; pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [ (mkGeneralOverlay ./python-pkgs) ]; + # ocamlPackagesExtensions is from a custom patch + ocamlPackagesExtensions = (prev.ocamlPackagesExtensions or [ ]) ++ [ + (mkGeneralOverlay ./ocaml-pkgs) + ]; }