ocamlPackages.uucp: 1.1.0 -> 2.0.0
This commit is contained in:
parent
8990a6c116
commit
7565673f71
@ -1,36 +1,31 @@
|
|||||||
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam }:
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg, uchar }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (stdenv.lib) getVersion versionAtLeast;
|
|
||||||
|
|
||||||
pname = "uucp";
|
pname = "uucp";
|
||||||
version = "1.1.0";
|
version = "2.0.0";
|
||||||
webpage = "http://erratique.ch/software/${pname}";
|
webpage = "http://erratique.ch/software/${pname}";
|
||||||
in
|
in
|
||||||
|
|
||||||
assert versionAtLeast (getVersion ocaml) "4.00";
|
assert stdenv.lib.versionAtLeast ocaml.version "4.01";
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
|
|
||||||
name = "ocaml-${pname}-${version}";
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "${webpage}/releases/${pname}-${version}.tbz";
|
url = "${webpage}/releases/${pname}-${version}.tbz";
|
||||||
sha256 = "1vm5f2ppdrnk19j0ppjiqz56qf5bzyk26gs0lz071s7iblk459jz";
|
sha256 = "07m7pfpcf03dqsbvqpq88y9hzic8fighlp4fgbav6n6xla35mk5k";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ocamlbuild opam ];
|
buildInputs = [ ocaml findlib ocamlbuild opam topkg ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ uchar ];
|
||||||
|
|
||||||
createFindlibDestdir = true;
|
createFindlibDestdir = true;
|
||||||
|
|
||||||
unpackCmd = "tar xjf $src";
|
unpackCmd = "tar xjf $src";
|
||||||
|
|
||||||
buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";
|
inherit (topkg) buildPhase installPhase;
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
opam-installer --script --prefix=$out ${pname}.install | sh
|
|
||||||
ln -s $out/lib/${pname} $out/lib/ocaml/${getVersion ocaml}/site-lib/${pname}
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "An OCaml library providing efficient access to a selection of character properties of the Unicode character database";
|
description = "An OCaml library providing efficient access to a selection of character properties of the Unicode character database";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user