567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
ocaml,
|
|
findlib,
|
|
ocamlbuild,
|
|
ocamlmod,
|
|
ocamlify,
|
|
}:
|
|
|
|
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 = {
|
|
description = "Configure, build and install system for OCaml projects";
|
|
homepage = "https://github.com/ocaml/oasis";
|
|
license = lib.licenses.lgpl21;
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
|
mainProgram = "oasis";
|
|
broken = lib.versionAtLeast ocaml.version "5.0";
|
|
inherit (ocaml.meta) platforms;
|
|
};
|
|
}
|