From 65c02f8b4cf2a21b264b387cc65a31137d4259bb Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 10 Apr 2022 08:58:49 +0100 Subject: [PATCH] binutils-unwrapped-all-targets: init at 2.38 It's not exactly a new package: binutils has been exposing `withAllTargets = true;` knob for a while. To give it more official status let's expose it as an `binutils-unwrapped-all-targets` attribute. Note that `binutils-unwrapped.override { withAllTargets = true; }` does not work due to recursive definition of binutils. Closes: https://github.com/NixOS/nixpkgs/issues/82792 --- pkgs/top-level/all-packages.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 88a1aa43d99f..a071c7d3c910 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14561,6 +14561,12 @@ with pkgs; # FHS sys dirs presumably only have stuff for the build platform noSysDirs = (stdenv.targetPlatform != stdenv.hostPlatform) || noSysDirs; }; + binutils-unwrapped-all-targets = callPackage ../development/tools/misc/binutils { + autoreconfHook = if targetPlatform.isiOS then autoreconfHook269 else autoreconfHook; + # FHS sys dirs presumably only have stuff for the build platform + noSysDirs = (stdenv.targetPlatform != stdenv.hostPlatform) || noSysDirs; + withAllTargets = true; + }; binutils = wrapBintoolsWith { bintools = binutils-unwrapped; };