mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
39 lines
963 B
Nix
39 lines
963 B
Nix
{ stdenv, fetchFromGitHub, ocaml, findlib, opaline
|
|
, calendar, eliom, js_of_ocaml-ppx_deriving_json
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ocsigen-toolkit";
|
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
|
version = "2.2.0";
|
|
|
|
propagatedBuildInputs = [ calendar eliom js_of_ocaml-ppx_deriving_json ];
|
|
buildInputs = [ ocaml findlib opaline ];
|
|
|
|
installPhase =
|
|
''
|
|
export OCAMLPATH=$out/lib/ocaml/${ocaml.version}/site-lib/:$OCAMLPATH
|
|
make install
|
|
opaline -prefix $out
|
|
'';
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ocsigen";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0qy6501jf81qcmkbicgrb1x4pxsjkhr40plwdn09w37d8vx9va3s";
|
|
};
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
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 ];
|
|
inherit (ocaml.meta) platforms;
|
|
};
|
|
|
|
|
|
}
|