mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
e22d0b49a9
The C++ compiler in our musl bootstrap for aarch64 is too old to build the latest version of patchelf, so we need to use the latest version that builds with that compiler to get a new bootstrap.
24 lines
687 B
Nix
24 lines
687 B
Nix
{ stdenv, fetchurl, patchelf }:
|
|
|
|
# Note: this package is used for bootstrapping fetchurl, and thus
|
|
# cannot use fetchpatch! All mutable patches (generated by GitHub or
|
|
# cgit) that are needed here should be included directly in Nixpkgs as
|
|
# files.
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "patchelf";
|
|
version = "0.13.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/NixOS/${pname}/releases/download/${version}/${pname}-${version}.tar.bz2";
|
|
sha256 = "sha256-OeiuzNdJXVTfCU0rSnwIAQ/3d3A2+q8k8o4Hd30VmOI=";
|
|
};
|
|
|
|
setupHook = [ ./setup-hook.sh ];
|
|
|
|
# fails 8 out of 24 tests, problems when loading libc.so.6
|
|
doCheck = stdenv.name == "stdenv-linux";
|
|
|
|
inherit (patchelf) meta;
|
|
}
|