2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
# 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.
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-09-25 04:45:31 +00:00
|
|
|
pname = "patchelf";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "0.15.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-09-25 04:45:31 +00:00
|
|
|
url = "https://github.com/NixOS/${pname}/releases/download/${version}/${pname}-${version}.tar.bz2";
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "sha256-9ANtPuTY4ijewb7/8PbkbYpA6eVw4AaOOdd+YuLIvcI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
strictDeps = true;
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
setupHook = [ ./setup-hook.sh ];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
# fails 8 out of 24 tests, problems when loading libc.so.6
|
2022-10-30 15:09:59 +00:00
|
|
|
doCheck = stdenv.name == "stdenv-linux"
|
|
|
|
# test scripts require unprefixed bintools binaries
|
|
|
|
# https://github.com/NixOS/patchelf/issues/417
|
|
|
|
&& stdenv.cc.targetPrefix == "";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2021-09-22 15:38:15 +00:00
|
|
|
homepage = "https://github.com/NixOS/patchelf";
|
2022-04-27 09:35:20 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Small utility to modify the dynamic linker and RPATH of ELF executables";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "patchelf";
|
2024-09-19 14:19:46 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|