2019-09-22 08:38:09 +01:00
|
|
|
{ stdenv, fetchurl, autoreconfHook }:
|
2016-09-20 12:57:57 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-09-22 08:38:09 +01:00
|
|
|
name = "patchelf-${version}";
|
|
|
|
version = "0.10";
|
2016-09-20 12:57:57 +01:00
|
|
|
|
2019-09-22 08:38:09 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://nixos.org/releases/patchelf/${name}/${name}.tar.bz2";
|
|
|
|
sha256 = "1wzwvnlyf853hw9zgqq5522bvf8gqadk8icgqa41a5n7593csw7n";
|
2016-09-20 12:57:57 +01: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 12:57:57 +01:00
|
|
|
setupHook = [ ./setup-hook.sh ];
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ ];
|
2016-09-20 12:57:57 +01:00
|
|
|
|
2018-08-22 01:06:45 +01:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2016-09-20 12:57:57 +01:00
|
|
|
|
2019-09-22 08:38:09 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/NixOS/patchelf/blob/master/README";
|
2019-09-22 08:38:09 +01:00
|
|
|
license = licenses.gpl3;
|
2016-09-20 12:57:57 +01:00
|
|
|
description = "A small utility to modify the dynamic linker and RPATH of ELF executables";
|
2019-09-22 08:38:09 +01:00
|
|
|
maintainers = [ maintainers.eelco ];
|
|
|
|
platforms = platforms.all;
|
2016-09-20 12:57:57 +01:00
|
|
|
};
|
|
|
|
}
|