about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorFlorent Becker <florent.becker@ens-lyon.org>2017-03-04 14:44:15 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-03-20 08:13:38 +0000
commit091073819a8e1cf98b7bb02f4a8d2e3af97b67e4 (patch)
tree5d5d9a94ba55eb235b5c3d23e316c8e72540debc /pkgs/development/ocaml-modules
parentac87d9ba8bb2a6602bd267c90ddcf25cfe29498f (diff)
downloadnixlib-091073819a8e1cf98b7bb02f4a8d2e3af97b67e4.tar
nixlib-091073819a8e1cf98b7bb02f4a8d2e3af97b67e4.tar.gz
nixlib-091073819a8e1cf98b7bb02f4a8d2e3af97b67e4.tar.bz2
nixlib-091073819a8e1cf98b7bb02f4a8d2e3af97b67e4.tar.lz
nixlib-091073819a8e1cf98b7bb02f4a8d2e3af97b67e4.tar.xz
nixlib-091073819a8e1cf98b7bb02f4a8d2e3af97b67e4.tar.zst
nixlib-091073819a8e1cf98b7bb02f4a8d2e3af97b67e4.zip
ocamlPackages.ocsigen-start: init at 1.0.0
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/ocsigen-start/default.nix34
-rw-r--r--pkgs/development/ocaml-modules/ocsigen-start/templates-dir.patch13
2 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ocsigen-start/default.nix b/pkgs/development/ocaml-modules/ocsigen-start/default.nix
new file mode 100644
index 000000000000..13794602af4f
--- /dev/null
+++ b/pkgs/development/ocaml-modules/ocsigen-start/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchurl, buildOcaml, ocsigen-toolkit, eliom, ocaml_pcre, pgocaml, macaque, safepass, yojson, ojquery, magick, ocsigen_deriving, ocsigen_server }:
+
+buildOcaml rec
+{
+  name = "ocsigen-start";
+  version = "1.0.0";
+
+  buildInputs = [ eliom ];
+  propagatedBuildInputs = [ pgocaml macaque safepass ocaml_pcre ocsigen-toolkit yojson ojquery ocsigen_deriving ocsigen_server magick ];
+
+  patches = [ ./templates-dir.patch ];
+
+  postPatch = ''
+  substituteInPlace "src/os_db.ml" --replace "citext" "text"
+  '';
+  
+  src = fetchurl {
+    url = "https://github.com/ocsigen/${name}/archive/${version}.tar.gz";
+    sha256 = "0npc2iq39ixci6ly0fssklv07zqi5cfa1adad4hm8dbzjawkqqll";
+  };
+
+  createFindlibDestdir = true;
+
+  meta = {
+    homepage = http://ocsigen.org/ocsigen-start;
+    description = "Eliom application skeleton";
+    longDescription =''
+     An Eliom application skeleton, ready to use to build your own application with users, (pre)registration, notifications, etc.
+      '';
+    license = stdenv.lib.licenses.lgpl21;
+    maintainers = [ stdenv.lib.maintainers.gal_bolle ];
+  };
+
+}
diff --git a/pkgs/development/ocaml-modules/ocsigen-start/templates-dir.patch b/pkgs/development/ocaml-modules/ocsigen-start/templates-dir.patch
new file mode 100644
index 000000000000..38365a26b99a
--- /dev/null
+++ b/pkgs/development/ocaml-modules/ocsigen-start/templates-dir.patch
@@ -0,0 +1,13 @@
+diff --git a/scripts/install.sh b/scripts/install.sh
+index f88ae11..d6aae70 100755
+--- a/scripts/install.sh
++++ b/scripts/install.sh
+@@ -11,9 +11,9 @@ fi
+ 
+ TPL_DIR=$1
+ TPL_NAME=$2
+-DEST0=$DESTDIR/$(eliom-distillery -dir)
++DEST0=$out/eliom-distillery-templates
+ DEST=$DEST0/$TPL_NAME
+ 
+ mkdir -p $DEST0