diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2022-10-18 12:58:09 +0200 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2022-10-25 09:40:57 +0200 |
commit | 8b11f0a5138c23c0be6e6a04caaf647fca644856 (patch) | |
tree | bf77b5c18e61af3faa69332963bcfc559f949730 /pkgs/build-support | |
parent | fbd942993f1e5d1215749f51a7ef42fd7948583b (diff) |
ocamlPackages.buildOcaml: remove
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/ocaml/default.nix | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/pkgs/build-support/ocaml/default.nix b/pkgs/build-support/ocaml/default.nix deleted file mode 100644 index 38029e8a4800c..0000000000000 --- a/pkgs/build-support/ocaml/default.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ lib, stdenv, writeText, ocaml, findlib, ocamlbuild, camlp4 }: - -{ pname ? args.name, version, nativeBuildInputs ? [], - createFindlibDestdir ? true, - dontStrip ? true, - minimumSupportedOcamlVersion ? null, - hasSharedObjects ? false, - setupHook ? null, - meta ? {}, ... -}@args: -let - defaultMeta = { - platforms = ocaml.meta.platforms or []; - }; -in - assert minimumSupportedOcamlVersion != null -> - lib.versionOlder minimumSupportedOcamlVersion ocaml.version; - -stdenv.mkDerivation (args // { - name = "ocaml-${pname}-${version}"; - - nativeBuildInputs = [ ocaml findlib ocamlbuild camlp4 ] ++ nativeBuildInputs; - - strictDeps = true; - - setupHook = if setupHook == null && hasSharedObjects - then writeText "setupHook.sh" '' - export CAML_LD_LIBRARY_PATH="''${CAML_LD_LIBRARY_PATH-}''${CAML_LD_LIBRARY_PATH:+:}''$1/lib/ocaml/${ocaml.version}/site-lib/${pname}/" - '' - else setupHook; - - inherit createFindlibDestdir; - inherit dontStrip; - - meta = defaultMeta // meta; -}) |