nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, cmdliner , topkg, uchar }:
2let
3 pname = "uutf";
4 webpage = "https://erratique.ch/software/${pname}";
5in
6
7stdenv.mkDerivation rec {
8 name = "ocaml${ocaml.version}-${pname}-${version}";
9 version = "1.0.2";
10
11 src = fetchurl {
12 url = "${webpage}/releases/${pname}-${version}.tbz";
13 sha256 = "1nx1rly3qj23jzn9yk3x6fwqimcxjd84kv5859vvhdg56psq26p6";
14 };
15
16 nativeBuildInputs = [ ocaml ocamlbuild findlib ];
17 buildInputs = [ findlib topkg cmdliner ];
18 propagatedBuildInputs = [ uchar ];
19
20 inherit (topkg) buildPhase installPhase;
21
22 meta = with lib; {
23 description = "Non-blocking streaming Unicode codec for OCaml";
24 homepage = webpage;
25 platforms = ocaml.meta.platforms or [];
26 license = licenses.bsd3;
27 maintainers = [ maintainers.vbgl ];
28 };
29}