binutils: move src hack out of srcs attrset
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user