From 52b7f0d233bb534917932135117a3bf54a06d6f0 Mon Sep 17 00:00:00 2001 From: Owen Lynch Date: Tue, 26 Nov 2024 09:55:09 +0000 Subject: [PATCH] added binutils to ocaml so that static compiler can build correctly --- pkgs/development/compilers/ocaml/generic.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/ocaml/generic.nix b/pkgs/development/compilers/ocaml/generic.nix index af07074eba1b..836ce0c1735a 100644 --- a/pkgs/development/compilers/ocaml/generic.nix +++ b/pkgs/development/compilers/ocaml/generic.nix @@ -6,7 +6,7 @@ let safeX11 = stdenv: !(stdenv.isAarch32 || stdenv.isMips || stdenv.hostPlatform.isStatic); in -{ lib, stdenv, fetchurl, ncurses, buildEnv, libunwind, fetchpatch +{ lib, stdenv, fetchurl, ncurses, binutils, buildEnv, libunwind, fetchpatch , libX11, xorgproto, useX11 ? safeX11 stdenv && lib.versionOlder version "4.09" , aflSupport ? false , flambdaSupport ? false @@ -109,6 +109,7 @@ stdenv.mkDerivation (args // { else ["nixpkgs_world"]; buildInputs = optional (lib.versionOlder version "4.07") ncurses ++ optionals useX11 [ libX11 xorgproto ]; + depsBuildBuild = [ binutils ]; propagatedBuildInputs = optional spaceTimeSupport libunwind; installTargets = [ "install" ] ++ optional useNativeCompilers "installopt"; preConfigure = optionalString (lib.versionOlder version "4.04") ''