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
55 lines
961 B
Nix
55 lines
961 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
ocaml,
|
|
findlib,
|
|
topkg,
|
|
ocamlbuild,
|
|
cmdliner,
|
|
odoc,
|
|
b0,
|
|
}:
|
|
|
|
{
|
|
pname,
|
|
version,
|
|
nativeBuildInputs ? [ ],
|
|
buildInputs ? [ ],
|
|
...
|
|
}@args:
|
|
|
|
lib.throwIf (args ? minimalOCamlVersion && lib.versionOlder ocaml.version args.minimalOCamlVersion)
|
|
"${pname}-${version} is not available for OCaml ${ocaml.version}"
|
|
|
|
stdenv.mkDerivation
|
|
(
|
|
{
|
|
|
|
dontAddStaticConfigureFlags = true;
|
|
configurePlatforms = [ ];
|
|
strictDeps = true;
|
|
inherit (topkg) buildPhase installPhase;
|
|
|
|
}
|
|
// (removeAttrs args [ "minimalOCamlVersion" ])
|
|
// {
|
|
|
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
|
|
|
nativeBuildInputs = [
|
|
ocaml
|
|
findlib
|
|
ocamlbuild
|
|
topkg
|
|
]
|
|
++ nativeBuildInputs;
|
|
buildInputs = [ topkg ] ++ buildInputs;
|
|
|
|
meta = (args.meta or { }) // {
|
|
platforms = args.meta.platforms or ocaml.meta.platforms;
|
|
};
|
|
|
|
}
|
|
)
|