@@ -1,24 +1,23 @@
11{ stdenv, fetchFromGitHub, zlib
2−, ocaml, ocamlbuild, ocamlfuse, findlib, gapi_ocaml, ocaml_sqlite3, camlidl }:
2+, ocaml, jbuilder, opam, ocamlfuse, findlib, gapi_ocaml, ocaml_sqlite3, camlidl }:
33
44stdenv.mkDerivation rec {
55 name = "google-drive-ocamlfuse-${version}";
6− version = "0.6.21";
6+ version = "0.6.25";
77
88 src = fetchFromGitHub {
99 owner = "astrada";
1010 repo = "google-drive-ocamlfuse";
1111 rev = "v${version}";
12− sha256 = "14qvhz18pzxdgxk5vcs024ajbkxccfwc9p3z5r6vfkc9mm851v59";
12+ sha256 = "1rjm2jcc93sz7l25zbgqal81534vvvbmwy7847s0k8fkr5nq97gp";
1313 };
1414
15− nativeBuildInputs = [ ocamlbuild ];
15+ nativeBuildInputs = [ jbuilder opam ];
1616
1717 buildInputs = [ zlib ocaml ocamlfuse findlib gapi_ocaml ocaml_sqlite3 camlidl ];
1818
19− configurePhase = "ocaml setup.ml -configure --prefix \"$out\"";
20− buildPhase = "ocaml setup.ml -build";
21− installPhase = "ocaml setup.ml -install";
19+ buildPhase = "jbuilder build @install";
20+ installPhase = "mkdir $out && jbuilder install --prefix $out";
2221
2322 meta = {
2423 homepage = http://gdfuse.forge.ocamlcore.org/;