summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ocamlfuse/default.nix
blob: ce9f2cc02ed934cd256dad1c20a96372dff11622 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchgit, ocaml, camlidl, fuse, findlib }:

let
  ocaml_version = (builtins.parseDrvName ocaml.name).version;
in

stdenv.mkDerivation rec {
  name = "ocamlfuse-2.7-1";
  src = fetchgit {
    url = "https://github.com/astrada/ocamlfuse";
    rev = "c436c16dbf458bc69b1166b08baf9ec0d6f9042d";
    sha256 = "4a72097cbcb375c2be92a5c9a44f3511670fac0815d6d00f38dc7c6879e9825d";
  };

  buildInputs = [ocaml findlib];
  propagatedBuildInputs = [camlidl fuse];
  configurePhase = '' ocaml setup.ml -configure --prefix $out '';
  buildPhase = "ocaml setup.ml -build";
  installPhase = "ocaml setup.ml -install";
  createFindlibDestdir = true;

  meta = {
    homepage = "http://sourceforge.net/projects/ocamlfuse";
    license = stdenv.lib.licenses.gpl2;
    description = "ocaml binding for fuse";
    maintainers = with stdenv.lib.maintainers; [ bennofs ];
    platforms = stdenv.lib.platforms.linux;
  };
}