binutils: move src hack out of srcs attrset

main
Bernardo Meurer 2 years ago
parent 3de6fbcfa2
commit aa9448db2a
No known key found for this signature in database
GPG Key ID: F4C0D53B8D14C246
  1. 10
      pkgs/development/tools/misc/binutils/default.nix

@ -33,11 +33,10 @@ let
version = "2.38";
srcs = {
# HACK: to ensure that we preserve source from bootstrap binutils to not rebuild LLVM
normal = stdenv.__bootPackages.binutils-unwrapped.src or (fetchurl {
normal = fetchurl {
url = "mirror://gnu/binutils/binutils-${version}.tar.bz2";
sha256 = "sha256-Bw7HHPB3pqWOC5WfBaCaNQFTeMLYpR6Q866r/jBZDvg=";
});
};
vc4-none = fetchFromGitHub {
owner = "itszor";
repo = "binutils-vc4";
@ -55,7 +54,10 @@ stdenv.mkDerivation {
pname = targetPrefix + "binutils";
inherit version;
src = srcs.${targetPlatform.system} or srcs.normal;
# HACK: Ensure that we preserve source from bootstrap binutils to not rebuild LLVM
src = stdenv.__bootPackages.binutils-unwrapped.src
or srcs.${targetPlatform.system}
or srcs.normal;
# WARN: this package is used for bootstrapping fetchurl, and thus cannot use
# fetchpatch! All mutable patches (generated by GitHub or cgit) that are

Loading…
Cancel
Save