mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
41 lines
858 B
Nix
41 lines
858 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 ];
|
|
|
|
strictDeps = !doCheck;
|
|
|
|
nativeCheckInputs = [ re ];
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "A 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";
|
|
};
|
|
}
|