From def7d4d5df94552f684f4a656f1453204ca590ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=B7=F0=90=91=91=F0=90=91=B4=F0=90=91=95=F0=90=91=91?= =?UTF-8?q?=F0=90=91=A9=F0=90=91=A4?= Date: Thu, 16 Jul 2026 02:20:49 +0700 Subject: [PATCH] ocaml: fix cross-compile by adding bootstrapping ocaml Fixes cross compilation looking for ocamlc: checking if the installed OCaml compiler can build the cross compiler... ./configure: line 4348: ocamlc: command not found no (5.4.1 vs ) configure: error: exiting Assisted-by: DeepSeek V4 Flash --- pkgs/development/compilers/ocaml/generic.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/compilers/ocaml/generic.nix b/pkgs/development/compilers/ocaml/generic.nix index d074173a8143..f7ecd1545fae 100644 --- a/pkgs/development/compilers/ocaml/generic.nix +++ b/pkgs/development/compilers/ocaml/generic.nix @@ -21,6 +21,7 @@ in ncurses, binutils, buildEnv, + pkgsBuildBuild, libunwind, fetchpatch, libx11, @@ -177,6 +178,7 @@ stdenv.mkDerivation ( ] else [ "nixpkgs_world" ]; + nativeBuildInputs = optional (stdenv.hostPlatform != stdenv.targetPlatform) pkgsBuildBuild.ocaml; buildInputs = optional (lib.versionOlder version "4.07") ncurses ++ optionals useX11 [