mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
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.
This commit is contained in:
parent
7d37688d66
commit
1c00a8afd7
@ -1,8 +1,10 @@
|
||||
{ stdenv
|
||||
, fetchurl, fetchpatch, gnu-config, autoreconfHook264, bison, binutils-raw
|
||||
{ stdenv, buildPackages
|
||||
, fetchurl, fetchpatch, gnu-config, autoreconfHook264, bison
|
||||
, libiberty, zlib
|
||||
}:
|
||||
|
||||
let inherit (buildPackages.buildPackages) binutils-raw; in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libbfd-${version}";
|
||||
inherit (binutils-raw.bintools) version src;
|
||||
|
@ -1,4 +1,6 @@
|
||||
{ stdenv, fetchurl, gcc, staticBuild ? false }:
|
||||
{ stdenv, buildPackages, fetchurl, staticBuild ? false }:
|
||||
|
||||
let inherit (buildPackages.buildPackages) gcc; in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libiberty-${gcc.cc.version}";
|
||||
|
Loading…
Reference in New Issue
Block a user