7 # Note: this package is used for bootstrapping fetchurl, and thus
8 # cannot use fetchpatch! All mutable patches (generated by GitHub or
9 # cgit) that are needed here should be included directly in Nixpkgs as
12 stdenv.mkDerivation rec {
17 url = "https://github.com/NixOS/${pname}/releases/download/${version}/${pname}-${version}.tar.bz2";
18 sha256 = "sha256-9ANtPuTY4ijewb7/8PbkbYpA6eVw4AaOOdd+YuLIvcI=";
23 setupHook = [ ./setup-hook.sh ];
25 enableParallelBuilding = true;
27 # fails 8 out of 24 tests, problems when loading libc.so.6
29 stdenv.name == "stdenv-linux"
30 # test scripts require unprefixed bintools binaries
31 # https://github.com/NixOS/patchelf/issues/417
32 && stdenv.cc.targetPrefix == "";
35 homepage = "https://github.com/NixOS/patchelf";
36 license = licenses.gpl3Plus;
37 description = "Small utility to modify the dynamic linker and RPATH of ELF executables";
38 mainProgram = "patchelf";
40 platforms = platforms.all;