git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.ptime: 0.8.2 -> 0.8.3
commit607650adacff4ff618e4f25dd3f3bd6324b54a03 authorVincent Laporte <Vincent.Laporte@gmail.com> dateWed 28 Jun 2017, 17:39 (9 years ago) parent64ff2e2
1 file changed+6−9
pkgs/development/ocaml-modules/ptime/default.nix+6−9
pkgs/development/ocaml-modules/ptime/default.nix+6−9
@@ -1,28 +1,25 @@
1−{stdenv, fetchurl, buildOcaml, ocaml, findlib, ocamlbuild, topkg, result, opam}:
1+{ stdenv, fetchurl, buildOcaml, ocaml, findlib, ocamlbuild, topkg, result, opam, js_of_ocaml }:
22
33buildOcaml rec {
4− version = "0.8.2";
4+ version = "0.8.3";
55 name = "ptime";
66
77 src = fetchurl {
88 url = "http://erratique.ch/software/ptime/releases/ptime-${version}.tbz";
9− sha256 = "1lihkhzskzwxskiarh4mvf7gbz5nfv25vmazbfz81m344i32a5pj";
9+ sha256 = "18jimskgnd9izg7kn6zk6sk35adgjm605dkv13plwslbb90kqr44";
1010 };
1111
1212 unpackCmd = "tar -xf $curSrc";
1313
14− buildInputs = [ ocaml findlib ocamlbuild topkg opam ];
14+ buildInputs = [ ocaml findlib ocamlbuild topkg opam js_of_ocaml ];
1515
1616 propagatedBuildInputs = [ result ];
1717
1818 buildPhase = ''
19− ocaml -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib/ pkg/pkg.ml build --with-js_of_ocaml false
19+ ocaml -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib/ pkg/pkg.ml build --with-js_of_ocaml true
2020 '';
2121
22− installPhase = ''
23− opam-installer --script --prefix=$out ptime.install | sh
24− ln -s $out/lib/ptime $out/lib/ocaml/${ocaml.version}/site-lib
25− '';
22+ inherit (topkg) installPhase;
2623
2724 meta = {
2825 homepage = http://erratique.ch/software/ptime;