summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/eliom
diff options
context:
space:
mode:
authorFlorent Becker <florent.becker@ens-lyon.org>2014-06-08 12:14:08 +0200
committerMichael Raskin <7c6f434c@mail.ru>2014-09-06 12:44:33 +0400
commit2709d322746e549a5c04d5952ca355da259bcb14 (patch)
treefe0562c3300f5de184acf90bfd0105aca4aab44d /pkgs/development/ocaml-modules/eliom
parente8250dd94ae4cebec34a08aedd4e2c016c408576 (diff)
downloadnixlib-2709d322746e549a5c04d5952ca355da259bcb14.tar
nixlib-2709d322746e549a5c04d5952ca355da259bcb14.tar.gz
nixlib-2709d322746e549a5c04d5952ca355da259bcb14.tar.bz2
nixlib-2709d322746e549a5c04d5952ca355da259bcb14.tar.lz
nixlib-2709d322746e549a5c04d5952ca355da259bcb14.tar.xz
nixlib-2709d322746e549a5c04d5952ca355da259bcb14.tar.zst
nixlib-2709d322746e549a5c04d5952ca355da259bcb14.zip
Add a derivation for eliom (ocaml web framework)
Diffstat (limited to 'pkgs/development/ocaml-modules/eliom')
-rw-r--r--pkgs/development/ocaml-modules/eliom/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/eliom/default.nix b/pkgs/development/ocaml-modules/eliom/default.nix
new file mode 100644
index 000000000000..af85a0a8f94c
--- /dev/null
+++ b/pkgs/development/ocaml-modules/eliom/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, fetchurl, ocaml, findlib, which, ocsigen_server, ocsigen_deriving,
+  js_of_ocaml, ocaml_react, ocaml_lwt, calendar, cryptokit, tyxml,
+  ocaml_ipaddr, ocamlnet, ocaml_ssl, ocaml_pcre, ocaml_optcomp}:
+
+stdenv.mkDerivation
+{
+  name = "eliom-4.0.0";
+
+  src = fetchurl {
+    url = https://github.com/ocsigen/eliom/archive/4.0.0.tar.gz;
+    sha256 = "1xf2l6lvngxzwaw6lvr6sgi48rz0wxg65q9lz4jzqjarkp0sx206";
+  };
+
+  buildInputs = [ocaml which ocsigen_server findlib ocsigen_deriving
+                 js_of_ocaml ocaml_react ocaml_lwt calendar
+                 cryptokit tyxml ocaml_ipaddr ocamlnet ocaml_ssl
+                 ocaml_pcre ocaml_optcomp];
+
+  preConfigure =
+  ''chmod a+x configure
+    sed s/deriving-ocsigen/deriving/g -i configure
+  '';
+
+  configureFlags = "--root $(out) --prefix /";
+
+  dontAddPrefix = true;  
+
+  createFindlibDestdir = true;
+}