nixpkgs/pkgs/development/ocaml-modules/uucp/default.nix

38 lines
974 B
Nix
Raw Normal View History

2016-12-04 10:39:58 +00:00
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg, uchar }:
let
pname = "uucp";
2016-12-04 10:39:58 +00:00
version = "2.0.0";
webpage = "http://erratique.ch/software/${pname}";
in
2016-12-04 10:39:58 +00:00
assert stdenv.lib.versionAtLeast ocaml.version "4.01";
stdenv.mkDerivation {
2016-12-04 10:39:58 +00:00
name = "ocaml${ocaml.version}-${pname}-${version}";
src = fetchurl {
url = "${webpage}/releases/${pname}-${version}.tbz";
2016-12-04 10:39:58 +00:00
sha256 = "07m7pfpcf03dqsbvqpq88y9hzic8fighlp4fgbav6n6xla35mk5k";
};
2016-12-04 10:39:58 +00:00
buildInputs = [ ocaml findlib ocamlbuild opam topkg ];
propagatedBuildInputs = [ uchar ];
createFindlibDestdir = true;
unpackCmd = "tar xjf $src";
2016-12-04 10:39:58 +00:00
inherit (topkg) buildPhase installPhase;
meta = with stdenv.lib; {
description = "An OCaml library providing efficient access to a selection of character properties of the Unicode character database";
homepage = "${webpage}";
platforms = ocaml.meta.platforms or [];
license = licenses.bsd3;
maintainers = [ maintainers.vbgl ];
};
}