libiberty, libbfd: Make hash less fickle

These shouldn't respond to targetPlatform, but previously did. The
reason is somewhat complex: they would rely on the sources of gcc and
binutils, respectively, which *do* depend on the target platform.
Obviously the source is the same in all cases, but when those packages
are no longer preserved from bootstrapping stages their `src` attributes
use a different fetchurl resulting in a changed hash.

+7 -3
+4 -2
pkgs/development/libraries/libbfd/default.nix
··· 1 - { stdenv 2 - , fetchurl, fetchpatch, gnu-config, autoreconfHook264, bison, binutils-raw 3 , libiberty, zlib 4 }: 5 6 stdenv.mkDerivation rec { 7 name = "libbfd-${version}";
··· 1 + { stdenv, buildPackages 2 + , fetchurl, fetchpatch, gnu-config, autoreconfHook264, bison 3 , libiberty, zlib 4 }: 5 + 6 + let inherit (buildPackages.buildPackages) binutils-raw; in 7 8 stdenv.mkDerivation rec { 9 name = "libbfd-${version}";
+3 -1
pkgs/development/libraries/libiberty/default.nix
··· 1 - { stdenv, fetchurl, gcc, staticBuild ? false }: 2 3 stdenv.mkDerivation rec { 4 name = "libiberty-${gcc.cc.version}";
··· 1 + { stdenv, buildPackages, fetchurl, staticBuild ? false }: 2 + 3 + let inherit (buildPackages.buildPackages) gcc; in 4 5 stdenv.mkDerivation rec { 6 name = "libiberty-${gcc.cc.version}";