feat(ocaml/ubase): init

with ocamlExtension init
This commit is contained in:
catvayor 2025-01-22 18:19:54 +01:00
parent dd29a6ea34
commit c941b7b08c
Signed by: lbailly
GPG key ID: CE3E645251AC63F3
2 changed files with 40 additions and 0 deletions

36
ocaml-pkgs/ubase.nix Normal file
View file

@ -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;
};
}

View file

@ -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)
];
}