From bc26feb1d6edfce6b43d0d82e418e0a7c4551c78 Mon Sep 17 00:00:00 2001 From: Florent Becker Date: Sat, 4 Mar 2017 14:32:19 +0100 Subject: [PATCH] ocamlPackages.ocsigen_toolkit: init at 1.0 --- .../ocaml-modules/ocsigen-toolkit/default.nix | 33 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/ocaml-modules/ocsigen-toolkit/default.nix diff --git a/pkgs/development/ocaml-modules/ocsigen-toolkit/default.nix b/pkgs/development/ocaml-modules/ocsigen-toolkit/default.nix new file mode 100644 index 000000000000..00416c92bb94 --- /dev/null +++ b/pkgs/development/ocaml-modules/ocsigen-toolkit/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl, buildOcaml, ocaml, eliom, opam }: + +buildOcaml rec +{ + name = "ocsigen-toolkit"; + version = "1.0.0"; + + propagatedBuildInputs = [ eliom ]; + buildInputs = [ opam ]; + + createFindlibDestdir = true; + + installPhase = + '' + export OCAMLPATH=$out/lib/ocaml/${ocaml.version}/site-lib/:$OCAMLPATH + make install + opam-installer --prefix=$out + ''; + + src = fetchurl { + sha256 = "0wm4fnss7vlkd03ybgfrk63kpip6m6p6kdqjn3f64n11256mwzj2"; + url = "https://github.com/ocsigen/${name}/archive/${version}.tar.gz"; + }; + + meta = { + homepage = http://ocsigen.org/ocsigen-toolkit/; + description = " User interface widgets for Ocsigen applications"; + license = stdenv.lib.licenses.lgpl21; + maintainers = [ stdenv.lib.maintainers.gal_bolle ]; + }; + + +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 43cd2e22e4e3..4cd041564f91 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -382,6 +382,8 @@ let ocsigen_server = callPackage ../development/ocaml-modules/ocsigen-server { }; + ocsigen-toolkit = callPackage ../development/ocaml-modules/ocsigen-toolkit { }; + ojquery = callPackage ../development/ocaml-modules/ojquery { }; omd = callPackage ../development/ocaml-modules/omd { };