ocaml-uucd: 2.0.0 -> 4.0.0
This commit is contained in:
parent
a99d7b1071
commit
1e419d505b
|
@ -1,7 +1,7 @@
|
||||||
{stdenv, fetchurl, ocaml, findlib, opam, xmlm}:
|
{ stdenv, fetchurl, ocaml, findlib, opam, xmlm, topkg }:
|
||||||
let
|
let
|
||||||
pname = "uucd";
|
pname = "uucd";
|
||||||
version = "2.0.0";
|
version = "4.0.0";
|
||||||
webpage = "http://erratique.ch/software/${pname}";
|
webpage = "http://erratique.ch/software/${pname}";
|
||||||
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
||||||
in
|
in
|
||||||
|
@ -11,16 +11,16 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "${webpage}/releases/${pname}-${version}.tbz";
|
url = "${webpage}/releases/${pname}-${version}.tbz";
|
||||||
sha256 = "12lbrrdjwdxfa99pbg344dfkj51lr5d2ispcj7d7lwsqyxy6h57i";
|
sha256 = "11cjfwa4wjhsyvzq4wl9z44xi28n49drz8nbfpx754vyfzwj3yc6";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib opam xmlm ];
|
buildInputs = [ ocaml findlib opam topkg ];
|
||||||
|
|
||||||
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 > install.sh
|
opam-installer --script --prefix=$out ${pname}.install > install.sh
|
||||||
|
|
Loading…
Reference in New Issue