Add a derivation for the ocsigen server (ocaml webserver)
This commit is contained in:
parent
da6859722d
commit
e8250dd94a
34
pkgs/development/ocaml-modules/ocsigen-server/default.nix
Normal file
34
pkgs/development/ocaml-modules/ocsigen-server/default.nix
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{stdenv, fetchurl, ocaml, findlib, which, ocaml_react, ocaml_ssl, ocaml_lwt, ocamlnet, ocaml_pcre, cryptokit, tyxml, ocaml_ipaddr, zlib, libev, openssl, ocaml_sqlite3, tree}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "ocsigenserver-2.4.0";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = https://github.com/ocsigen/ocsigenserver/archive/2.4.0.tar.gz;
|
||||||
|
sha256 = "1fjj8g6ivyfsa0446w77rjihhbw0gh5pgx7brywql2shk999riby";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ocaml which findlib ocaml_react ocaml_ssl ocaml_lwt ocamlnet ocaml_pcre cryptokit tyxml ocaml_ipaddr zlib libev openssl ocaml_sqlite3 tree];
|
||||||
|
|
||||||
|
configureFlags = "--root $(out) --prefix /";
|
||||||
|
|
||||||
|
dontAddPrefix = true;
|
||||||
|
|
||||||
|
createFindlibDestdir = true;
|
||||||
|
|
||||||
|
postFixup =
|
||||||
|
''
|
||||||
|
rm -rf $out/var/run
|
||||||
|
'';
|
||||||
|
|
||||||
|
dontPatchShebangs = true;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = http://ocsigen.org/ocsigenserver/;
|
||||||
|
description = "Ocsigen Server is a full featured Web server. It implements most features of the HTTP protocol, and has a very powerful extension mechanism that make very easy to plug your own OCaml modules for generating pages.";
|
||||||
|
license = "LGPL"; # <- todo: check
|
||||||
|
platforms = ocaml.meta.platforms;
|
||||||
|
maintainers = [ stdenv.lib.maintainers.gal_bolle ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -3401,6 +3401,8 @@ let
|
|||||||
|
|
||||||
ocaml_text = callPackage ../development/ocaml-modules/ocaml-text { };
|
ocaml_text = callPackage ../development/ocaml-modules/ocaml-text { };
|
||||||
|
|
||||||
|
ocsigen_server = callPackage ../development/ocaml-modules/ocsigen-server { };
|
||||||
|
|
||||||
ounit = callPackage ../development/ocaml-modules/ounit { };
|
ounit = callPackage ../development/ocaml-modules/ounit { };
|
||||||
|
|
||||||
tyxml = callPackage ../development/ocaml-modules/tyxml { };
|
tyxml = callPackage ../development/ocaml-modules/tyxml { };
|
||||||
|
Loading…
Reference in New Issue
Block a user