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
66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
ocaml,
|
|
findlib,
|
|
ocamlbuild,
|
|
ocamlmod,
|
|
ocamlify,
|
|
}:
|
|
|
|
lib.throwIf (lib.versionAtLeast ocaml.version "5.0") "oasis is not available for OCaml ≥ 5.0"
|
|
|
|
stdenv.mkDerivation
|
|
{
|
|
version = "0.4.11";
|
|
pname = "ocaml-oasis";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.ocamlcore.org/oasis/oasis/0.4.11/oasis-0.4.11.tar.gz";
|
|
hash = "sha256-GLc97vTtbpqDM38ks7vi3tZSaLP/cwn8wA0l5X4dwS4=";
|
|
};
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
ocaml
|
|
findlib
|
|
ocamlbuild
|
|
ocamlmod
|
|
ocamlify
|
|
];
|
|
|
|
buildInputs = [ ocamlbuild ];
|
|
|
|
configurePhase = ''
|
|
runHook preConfigure
|
|
ocaml setup.ml -configure --prefix $out
|
|
runHook postConfigure
|
|
'';
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
ocaml setup.ml -build
|
|
runHook postBuild
|
|
'';
|
|
installPhase = ''
|
|
runHook preInstall
|
|
ocaml setup.ml -install
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Configure, build and install system for OCaml projects";
|
|
homepage = "https://github.com/ocaml/oasis";
|
|
license = licenses.lgpl21;
|
|
maintainers = with maintainers; [
|
|
vbgl
|
|
maggesi
|
|
];
|
|
mainProgram = "oasis";
|
|
inherit (ocaml.meta) platforms;
|
|
};
|
|
}
|