@@ -1,7 +1,7 @@
1−{stdenv, fetchurl, ocaml, findlib, opam, xmlm}:
1+{ stdenv, fetchurl, ocaml, findlib, opam, xmlm, topkg }:
22let
33 pname = "uucd";
4− version = "2.0.0";
4+ version = "4.0.0";
55 webpage = "http://erratique.ch/software/${pname}";
66 ocaml_version = (builtins.parseDrvName ocaml.name).version;
77in
@@ -11,16 +11,16 @@ stdenv.mkDerivation rec {
1111
1212 src = fetchurl {
1313 url = "${webpage}/releases/${pname}-${version}.tbz";
14− sha256 = "12lbrrdjwdxfa99pbg344dfkj51lr5d2ispcj7d7lwsqyxy6h57i";
14+ sha256 = "11cjfwa4wjhsyvzq4wl9z44xi28n49drz8nbfpx754vyfzwj3yc6";
1515 };
1616
17− buildInputs = [ ocaml findlib opam xmlm ];
17+ buildInputs = [ ocaml findlib opam topkg ];
1818
1919 createFindlibDestdir = true;
2020
2121 unpackCmd = "tar xjf $src";
2222
23− buildPhase = "ocaml ./pkg/build.ml native=true native-dynlink=true";
23+ inherit (topkg) buildPhase;
2424
2525 installPhase = ''
2626 opam-installer --script --prefix=$out ${pname}.install > install.sh