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