about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorBenno Fünfstück <benno.fuenfstueck@gmail.com>2015-01-25 22:08:33 +0100
committerBenno Fünfstück <benno.fuenfstueck@gmail.com>2015-01-25 22:10:09 +0100
commitbe58ce4815dc40d94409b65e210425a24b3819c0 (patch)
treeb0eb347095070d5589d3a70a1502878c042a0967 /pkgs
parent8408136da7bec07a17f8cf0760f9162df8041e4e (diff)
google-drive-ocamlfuse: new expression
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/networking/google-drive-ocamlfuse/default.nix18
-rw-r--r--pkgs/development/ocaml-modules/gapi-ocaml/default.nix24
-rw-r--r--pkgs/development/ocaml-modules/ocamlfuse/default.nix29
-rw-r--r--pkgs/development/ocaml-modules/ocurl/default.nix19
-rw-r--r--pkgs/development/tools/ocaml/camlidl/default.nix15
-rw-r--r--pkgs/top-level/all-packages.nix8
6 files changed, 112 insertions, 1 deletions
diff --git a/pkgs/applications/networking/google-drive-ocamlfuse/default.nix b/pkgs/applications/networking/google-drive-ocamlfuse/default.nix
new file mode 100644
index 0000000000000..db2934785eb73
--- /dev/null
+++ b/pkgs/applications/networking/google-drive-ocamlfuse/default.nix
@@ -0,0 +1,18 @@
+{ stdenv, fetchurl, ocamlPackages, zlib }:
+
+stdenv.mkDerivation rec {
+  name = "google-drive-ocamlfuse-0.5.12";
+  src = fetchurl {
+    url = "https://forge.ocamlcore.org/frs/download.php/1489/${name}.tar.gz";
+    sha256 = "0yfzzrv4h7vplw6qjm9viymy51jaqqari012agar96zwa86fsrdr";
+  };
+
+  buildInputs = [ zlib ] ++ (with ocamlPackages; [ocaml ocamlfuse findlib gapi_ocaml ocaml_sqlite3 camlidl]);
+  configurePhase = "ocaml setup.ml -configure --prefix \"$out\"";
+  buildPhase = "ocaml setup.ml -build";
+  installPhase = "ocaml setup.ml -install";
+
+  meta = {
+    
+  };
+}
diff --git a/pkgs/development/ocaml-modules/gapi-ocaml/default.nix b/pkgs/development/ocaml-modules/gapi-ocaml/default.nix
new file mode 100644
index 0000000000000..51afb39ca6593
--- /dev/null
+++ b/pkgs/development/ocaml-modules/gapi-ocaml/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, fetchurl, ocaml, findlib, ocurl, cryptokit, ocaml_extlib, yojson, ocamlnet, xmlm }:
+
+stdenv.mkDerivation rec {
+  name = "gapi-ocaml-0.2.6";
+  src = fetchurl {
+    url = "https://forge.ocamlcore.org/frs/download.php/1468/${name}.tar.gz";
+    sha256 = "1sqsir07xxk9xy723l206r7d10sp6rfid9dvi0g34vbkvshm50y2";
+  };
+  buildInputs = [ ocaml findlib ];
+  propagatedBuildInputs = [ ocurl cryptokit ocaml_extlib yojson ocamlnet xmlm ];
+
+  configurePhase = "ocaml setup.ml -configure --prefix $out";
+  buildPhase = "ocaml setup.ml -build";
+  installPhase = "ocaml setup.ml -install";
+  createFindlibDestdir = true;
+
+  meta = {
+    description = "OCaml client for google services";
+    homepage = http://gapi-ocaml.forge.ocamlcore.org;
+    license = stdenv.lib.licenses.mit;
+    maintainers = with stdenv.lib.maintainers; [ bennofs ];
+    platforms = ocaml.meta.platforms;
+  };
+}
diff --git a/pkgs/development/ocaml-modules/ocamlfuse/default.nix b/pkgs/development/ocaml-modules/ocamlfuse/default.nix
new file mode 100644
index 0000000000000..ce9f2cc02ed93
--- /dev/null
+++ b/pkgs/development/ocaml-modules/ocamlfuse/default.nix
@@ -0,0 +1,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;
+  };
+}
diff --git a/pkgs/development/ocaml-modules/ocurl/default.nix b/pkgs/development/ocaml-modules/ocurl/default.nix
new file mode 100644
index 0000000000000..9d1c18f1817c1
--- /dev/null
+++ b/pkgs/development/ocaml-modules/ocurl/default.nix
@@ -0,0 +1,19 @@
+{ stdenv, ocaml, findlib, fetchurl, curl, ncurses }:
+
+stdenv.mkDerivation rec {
+  name = "ocurl-0.7.2";
+  src = fetchurl {
+    url = "https://forge.ocamlcore.org/frs/download.php/1463/${name}.tar.gz";
+    sha256 = "0yn7f3g5wva8nqxh76adpq9rihggc405jkqysfghzwnf3yymyqrr";
+  };
+
+  buildInputs = [ocaml findlib curl ncurses];
+  createFindlibDestdir = true;
+  meta = {
+    description = "OCaml bindings to libcurl";
+    license = stdenv.lib.licenses.bsd;
+    homepage = http://ocurl.forge.ocamlcore.org/;
+    maintainers = with stdenv.lib.maintainers; [ bennofs ];
+    platforms = ocaml.meta.platforms;
+  };
+}
diff --git a/pkgs/development/tools/ocaml/camlidl/default.nix b/pkgs/development/tools/ocaml/camlidl/default.nix
index d049377ea9494..dee605ced570d 100644
--- a/pkgs/development/tools/ocaml/camlidl/default.nix
+++ b/pkgs/development/tools/ocaml/camlidl/default.nix
@@ -1,4 +1,4 @@
-{stdenv, fetchurl, makeWrapper, ocaml, ncurses}:
+{stdenv, fetchurl, makeWrapper, gcc, ocaml, ncurses}:
 let
   ocaml_version = (builtins.parseDrvName ocaml.name).version;
   pname = "camlidl";
@@ -20,9 +20,22 @@ stdenv.mkDerivation {
     mv config/Makefile.unix config/Makefile
     substituteInPlace config/Makefile --replace BINDIR=/usr/local/bin BINDIR=$out
     substituteInPlace config/Makefile --replace OCAMLLIB=/usr/local/lib/ocaml OCAMLLIB=$out/lib/ocaml/${ocaml_version}/site-lib/camlidl
+    substituteInPlace config/Makefile --replace CPP=/lib/cpp CPP=${gcc}/bin/cpp
     mkdir -p $out/lib/ocaml/${ocaml_version}/site-lib/camlidl/caml
   '';
 
+  postInstall = ''
+    cat >$out/lib/ocaml/${ocaml_version}/site-lib/camlidl/META <<EOF
+    # Courtesy of GODI
+    description = "Stub generator"
+    version = "${version}"
+    archive(byte) = "com.cma"
+    archive(native) = "com.cmxa"
+    EOF
+    mkdir -p $out/bin
+    ln -s $out/camlidl $out/bin
+  '';
+
   meta = {
     description = "CamlIDL is a stub code generator and COM binding for Objective Caml";
     homepage = "${webpage}";
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index dc70906dfdba6..81f6fc9224300 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -3783,6 +3783,8 @@ let
 
     patoline = callPackage ../tools/typesetting/patoline { };
 
+    gapi_ocaml = callPackage ../development/ocaml-modules/gapi-ocaml { };
+
     gg = callPackage ../development/ocaml-modules/gg { };
 
     gmetadom = callPackage ../development/ocaml-modules/gmetadom { };
@@ -3837,6 +3839,8 @@ let
 
     ocaml_expat = callPackage ../development/ocaml-modules/expat { };
 
+    ocamlfuse = callPackage ../development/ocaml-modules/ocamlfuse { };
+
     ocamlgraph = callPackage ../development/ocaml-modules/ocamlgraph { };
 
     ocaml_http = callPackage ../development/ocaml-modules/http { };
@@ -3919,6 +3923,8 @@ let
       minimal = false;
     };
 
+    ocurl = callPackage ../development/ocaml-modules/ocurl { };
+
     pprint = callPackage ../development/ocaml-modules/pprint { };
 
     pycaml = callPackage ../development/ocaml-modules/pycaml { };
@@ -9925,6 +9931,8 @@ let
 
   goldendict = callPackage ../applications/misc/goldendict { };
 
+  google-drive-ocamlfuse = callPackage ../applications/networking/google-drive-ocamlfuse { };
+
   google-musicmanager = callPackage ../applications/audio/google-musicmanager { };
 
   gpicview = callPackage ../applications/graphics/gpicview { };