Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
1.1 KiB
Nix
57 lines
1.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 = "4.1.0";
|
|
|
|
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;
|
|
hash = "sha256-1kw2HANajHDdMmjuYNB79ZDqy2Ml02nc5s+cJzIoxQ8=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
|
|
}
|