3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/ocsigen-toolkit/default.nix
Ulrik Strid a13cdfe520 ocamlPackages tree-wide: Move buildInputs that should be nativeBuildInputs
To keep this for the future we also strictDeps where possible, including for janePackages, topkg, oasis and ocamlbuild.
This makes some closures significantly smaller and makes cross compilation easier
2022-02-24 14:39:27 +01:00

41 lines
1 KiB
Nix

{ stdenv, lib, 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 = "3.0.1";
propagatedBuildInputs = [ calendar js_of_ocaml-ppx_deriving_json eliom ];
nativeBuildInputs = [ ocaml findlib opaline eliom ];
strictDeps = true;
installPhase = ''
runHook preInstall
mkdir -p $OCAMLFIND_DESTDIR
export OCAMLPATH=$out/lib/ocaml/${ocaml.version}/site-lib/:$OCAMLPATH
make install
opaline -prefix $out
runHook postInstall
'';
src = fetchFromGitHub {
owner = "ocsigen";
repo = pname;
rev = version;
sha256 = "1yx50ja2wcs5vfy4rk9szgwccpnihkjn14i4ywchx4yr4ppr00fm";
};
meta = {
homepage = "http://ocsigen.org/ocsigen-toolkit/";
description = " User interface widgets for Ocsigen applications";
license = lib.licenses.lgpl21;
maintainers = [ lib.maintainers.gal_bolle ];
inherit (ocaml.meta) platforms;
};
}