biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / ocaml-modules / ocsigen-start / default.nix
blobe9af3a27a756d2a9abaae95c8c796c0a7ccc88f7
1 { stdenv, lib, fetchFromGitHub, fetchpatch, ocaml, findlib, ocsigen-toolkit, pgocaml_ppx, safepass, yojson
2 , cohttp-lwt-unix, eliom
3 , resource-pooling
4 , ocsigen-ppx-rpc
5 }:
7 stdenv.mkDerivation rec {
8   pname = "ocaml${ocaml.version}-ocsigen-start";
9   version = "6.2.0";
11   nativeBuildInputs = [ ocaml findlib eliom ];
12   buildInputs = [ ocsigen-ppx-rpc ];
13   propagatedBuildInputs = [ pgocaml_ppx safepass ocsigen-toolkit yojson resource-pooling cohttp-lwt-unix ];
15   strictDeps = true;
17   patches = [ ./templates-dir.patch
18     # Compatibility with tyxml 4.6.x
19     (fetchpatch {
20        url = "https://github.com/ocsigen/ocsigen-start/commit/0b70506f94fcb2e06cb65ce0d6a28b9b84c695f3.patch";
21        hash = "sha256-p/VvIu9reI8lc9lxWiTrjZvn46vuF00QInYuWPtRVyk=";
22     })
23   ];
25   src = fetchFromGitHub {
26     owner = "ocsigen";
27     repo = "ocsigen-start";
28     rev = version;
29     hash = "sha256-i2nj/m1Ihb/bprtHvZh47/oK0v+aFNVH+A2CB4rrrPk=";
30   };
32   preInstall = ''
33     mkdir -p $OCAMLFIND_DESTDIR
34   '';
36   meta = {
37     homepage = "http://ocsigen.org/ocsigen-start";
38     description = "Eliom application skeleton";
39     longDescription =''
40      An Eliom application skeleton, ready to use to build your own application with users, (pre)registration, notifications, etc.
41       '';
42     license = lib.licenses.lgpl21Only;
43     inherit (ocaml.meta) platforms;
44     maintainers = [ lib.maintainers.gal_bolle ];
45   };