about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ocsigen-start
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2019-08-10 16:40:51 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2019-08-11 08:03:00 +0000
commit08f438fe50299819b1ea0987372b4da62ac03400 (patch)
tree8519557617087ac6a35a039205e682f84b8aab95 /pkgs/development/ocaml-modules/ocsigen-start
parent82db6686152845c213878f5cb709d0bc3083f98c (diff)
downloadnixlib-08f438fe50299819b1ea0987372b4da62ac03400.tar
nixlib-08f438fe50299819b1ea0987372b4da62ac03400.tar.gz
nixlib-08f438fe50299819b1ea0987372b4da62ac03400.tar.bz2
nixlib-08f438fe50299819b1ea0987372b4da62ac03400.tar.lz
nixlib-08f438fe50299819b1ea0987372b4da62ac03400.tar.xz
nixlib-08f438fe50299819b1ea0987372b4da62ac03400.tar.zst
nixlib-08f438fe50299819b1ea0987372b4da62ac03400.zip
ocamlPackages.ocsigen-start: 1.5.0 -> 1.8.0
Diffstat (limited to 'pkgs/development/ocaml-modules/ocsigen-start')
-rw-r--r--pkgs/development/ocaml-modules/ocsigen-start/default.nix18
1 files changed, 10 insertions, 8 deletions
diff --git a/pkgs/development/ocaml-modules/ocsigen-start/default.nix b/pkgs/development/ocaml-modules/ocsigen-start/default.nix
index 4bc9b7f8629e..1287c9b80b57 100644
--- a/pkgs/development/ocaml-modules/ocsigen-start/default.nix
+++ b/pkgs/development/ocaml-modules/ocsigen-start/default.nix
@@ -1,14 +1,13 @@
-{ stdenv, fetchFromGitHub, buildOcaml, ocsigen-toolkit, eliom, ocaml_pcre, pgocaml, macaque, safepass, yojson, ocsigen_deriving, ocsigen_server
+{ stdenv, fetchFromGitHub, ocaml, findlib, ocsigen-toolkit, eliom, ocaml_pcre, pgocaml, macaque, safepass, yojson, ocsigen_deriving, ocsigen_server
 , js_of_ocaml-camlp4
 , resource-pooling
 }:
 
-buildOcaml rec
-{
-  name = "ocsigen-start";
-  version = "1.5.0";
+stdenv.mkDerivation rec {
+  name = "ocaml${ocaml.version}-ocsigen-start-${version}";
+  version = "1.8.0";
 
-  buildInputs = [ eliom js_of_ocaml-camlp4 ];
+  buildInputs = [ ocaml findlib eliom js_of_ocaml-camlp4 ];
   propagatedBuildInputs = [ pgocaml macaque safepass ocaml_pcre ocsigen-toolkit yojson ocsigen_deriving ocsigen_server resource-pooling ];
 
   patches = [ ./templates-dir.patch ];
@@ -16,12 +15,14 @@ buildOcaml rec
   postPatch = ''
   substituteInPlace "src/os_db.ml" --replace "citext" "text"
   '';
+
+  createFindlibDestdir = true;
   
   src = fetchFromGitHub {
     owner = "ocsigen";
-    repo = name;
+    repo = "ocsigen-start";
     rev = version;
-    sha256 = "07478hz5jhxb242hfr808516k81vdbzj4j6cycvls3b9lzbyszha";
+    sha256 = "0h5gp06vxy6jpppz1x840gyf9viiy7lic7spx7fxldpy2jpv058s";
   };
 
   meta = {
@@ -31,6 +32,7 @@ buildOcaml rec
      An Eliom application skeleton, ready to use to build your own application with users, (pre)registration, notifications, etc.
       '';
     license = stdenv.lib.licenses.lgpl21;
+    inherit (ocaml.meta) platforms;
     maintainers = [ stdenv.lib.maintainers.gal_bolle ];
   };