nixpkgs-suyu/pkgs/development/ocaml-modules/uutf/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
954 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, cmdliner , topkg, uchar }:
let
pname = "uutf";
in
lib.throwIfNot (lib.versionAtLeast ocaml.version "4.03")
"${pname} is not available with OCaml ${ocaml.version}"
2016-12-04 11:13:37 +01:00
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-${pname}-${version}";
2022-03-21 15:58:22 +01:00
version = "1.0.3";
src = fetchurl {
url = "https://erratique.ch/software/${pname}/releases/${pname}-${version}.tbz";
2022-03-21 15:58:22 +01:00
sha256 = "sha256-h3KlYT0ecCmM4U3zMkGjaF8h5O9r20zwP+mF+x7KBWg=";
};
nativeBuildInputs = [ ocaml ocamlbuild findlib topkg ];
buildInputs = [ topkg cmdliner ];
2016-12-04 11:13:37 +01:00
propagatedBuildInputs = [ uchar ];
strictDeps = true;
2016-12-04 11:13:37 +01:00
inherit (topkg) buildPhase installPhase;
meta = with lib; {
description = "Non-blocking streaming Unicode codec for OCaml";
2022-03-21 15:58:22 +01:00
homepage = "https://erratique.ch/software/uutf";
inherit (ocaml.meta) platforms;
license = licenses.bsd3;
maintainers = [ maintainers.vbgl ];
};
}