2019-04-01 14:26:03 +00:00
|
|
|
{ stdenv, fetchurl, autoreconfHook }:
|
2016-09-20 11:57:57 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-01 14:26:03 +00:00
|
|
|
name = "patchelf-${version}";
|
|
|
|
version = "0.10";
|
2016-09-20 11:57:57 +00:00
|
|
|
|
2019-04-01 14:26:03 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://nixos.org/releases/patchelf/${name}/${name}.tar.bz2";
|
|
|
|
sha256 = "1wzwvnlyf853hw9zgqq5522bvf8gqadk8icgqa41a5n7593csw7n";
|
2016-09-20 11:57:57 +00:00
|
|
|
};
|
|
|
|
|
2018-01-22 21:03:37 +00:00
|
|
|
# Drop test that fails on musl (?)
|
|
|
|
postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
|
|
|
|
substituteInPlace tests/Makefile.am \
|
|
|
|
--replace "set-rpath-library.sh" ""
|
|
|
|
'';
|
|
|
|
|
2016-09-20 11:57:57 +00:00
|
|
|
setupHook = [ ./setup-hook.sh ];
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ ];
|
2016-09-20 11:57:57 +00:00
|
|
|
|
2018-08-22 00:06:45 +00:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2016-09-20 11:57:57 +00:00
|
|
|
|
2019-04-01 20:44:47 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-22 18:50:04 +00:00
|
|
|
homepage = https://nixos.org/patchelf.html;
|
2019-04-01 20:44:47 +00:00
|
|
|
license = licenses.gpl3;
|
2016-09-20 11:57:57 +00:00
|
|
|
description = "A small utility to modify the dynamic linker and RPATH of ELF executables";
|
2019-04-01 20:44:47 +00:00
|
|
|
maintainers = [ maintainers.eelco ];
|
|
|
|
platforms = platforms.all;
|
2016-09-20 11:57:57 +00:00
|
|
|
};
|
|
|
|
}
|