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
This commit is contained in:
Sergei Trofimovich 2022-04-10 08:58:49 +01:00
parent ae979da6b8
commit 65c02f8b4c

View file

@ -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;
};