nixpkgs/pkgs/development/ocaml-modules/uuuu/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

41 lines
846 B
Nix

{ angstrom
, buildDunePackage
, fetchurl
, findlib
, lib
, ocaml
, re
}:
buildDunePackage rec {
pname = "uuuu";
version = "0.3.0";
src = fetchurl {
url = "https://github.com/mirage/uuuu/releases/download/v${version}/uuuu-${version}.tbz";
sha256 = "sha256:19n39yc7spgzpk9i70r0nhkwsb0bfbvbgpf8d863p0a3wgryhzkb";
};
postPatch = ''
substituteInPlace src/dune --replace 'ocaml} ' \
'ocaml} -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib '
'';
nativeBuildInputs = [ findlib ];
buildInputs = [ angstrom ];
checkInputs = [ re ];
doCheck = true;
duneVersion = "3";
meta = {
description = "Library to normalize an ISO-8859 input to Unicode code-point";
homepage = "https://github.com/mirage/uuuu";
license = lib.licenses.mit;
maintainers = [ ];
mainProgram = "uuuu.generate";
};
}