2019-04-01 09:28:55 -07:00
|
|
|
{ stdenv, fetchurl, autoreconfHook }:
|
2004-09-25 19:32:23 +00:00
|
|
|
|
2010-01-19 17:15:47 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-04-01 09:28:55 -07:00
|
|
|
name = "patchelf-${version}";
|
|
|
|
version = "0.10";
|
2011-11-08 01:30:02 +00:00
|
|
|
|
2004-09-25 19:32:23 +00:00
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://nixos.org/releases/patchelf/${name}/${name}.tar.bz2";
|
2019-03-28 21:30:13 -07:00
|
|
|
sha256 = "1wzwvnlyf853hw9zgqq5522bvf8gqadk8icgqa41a5n7593csw7n";
|
2007-05-24 16:00:05 +00:00
|
|
|
};
|
|
|
|
|
2019-04-01 09:28:55 -07:00
|
|
|
# Drop test that fails on musl (?)
|
|
|
|
postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
|
|
|
|
substituteInPlace tests/Makefile.am \
|
|
|
|
--replace "set-rpath-library.sh" ""
|
|
|
|
'';
|
|
|
|
|
2014-06-27 11:15:28 +02:00
|
|
|
setupHook = [ ./setup-hook.sh ];
|
|
|
|
|
2019-04-01 09:28:55 -07:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ ];
|
|
|
|
|
|
|
|
# if not Musl, fails 8 out of 25 tests, problems when loading libc.so.6
|
|
|
|
doCheck = stdenv.hostPlatform.isMusl;
|
2013-06-12 14:59:39 +02:00
|
|
|
|
2018-09-29 16:36:33 -04:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-22 13:50:04 -05:00
|
|
|
homepage = https://nixos.org/patchelf.html;
|
2018-09-29 16:36:33 -04:00
|
|
|
license = licenses.gpl3;
|
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 16:36:33 -04:00
|
|
|
maintainers = [ maintainers.eelco ];
|
|
|
|
platforms = platforms.all;
|
2004-09-25 19:32:23 +00:00
|
|
|
};
|
|
|
|
}
|