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