2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2004-09-25 20:32:23 +01:00
|
|
|
|
2020-06-26 21:44:45 +01: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 01:35:55 +01:00
|
|
|
pname = "patchelf";
|
2021-12-08 00:00:27 +00:00
|
|
|
version = "0.14.3";
|
2011-11-08 01:30:02 +00:00
|
|
|
|
2004-09-25 20:32:23 +01:00
|
|
|
src = fetchurl {
|
2020-08-28 01:35:55 +01:00
|
|
|
url = "https://github.com/NixOS/${pname}/releases/download/${version}/${pname}-${version}.tar.bz2";
|
2021-12-08 00:00:27 +00:00
|
|
|
sha256 = "sha256-oBfsPSFSoZ/ZacDYez+LQ+MqZuT/q9yHZ6VgYrmuwnA=";
|
2007-05-24 17:00:05 +01:00
|
|
|
};
|
|
|
|
|
2014-06-27 10:15:28 +01:00
|
|
|
setupHook = [ ./setup-hook.sh ];
|
|
|
|
|
2020-06-09 15:29:20 +01:00
|
|
|
# fails 8 out of 24 tests, problems when loading libc.so.6
|
|
|
|
doCheck = stdenv.name == "stdenv-linux";
|
2013-06-12 13:59:39 +01:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2021-09-21 12:04:09 +01:00
|
|
|
homepage = "https://github.com/NixOS/patchelf";
|
2018-09-29 21:36:33 +01:00
|
|
|
license = licenses.gpl3;
|
2007-05-24 17:00:05 +01:00
|
|
|
description = "A small utility to modify the dynamic linker and RPATH of ELF executables";
|
2018-09-29 21:36:33 +01:00
|
|
|
maintainers = [ maintainers.eelco ];
|
|
|
|
platforms = platforms.all;
|
2004-09-25 20:32:23 +01:00
|
|
|
};
|
|
|
|
}
|