2020-06-18 07:06:33 +00:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "patchelf-${version}";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "2020-07-11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NixOS";
|
|
|
|
repo = "patchelf";
|
2020-08-20 17:08:02 +00:00
|
|
|
rev = "126372b636733b160e693c9913e871f6755c02e";
|
|
|
|
sha256 = "07cn40ypys5pyc3jfgxvqj7qk5v6m2rr5brnpmxdsl1557ryx226";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Drop test that fails on musl (?)
|
|
|
|
postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
|
|
|
|
substituteInPlace tests/Makefile.am \
|
|
|
|
--replace "set-rpath-library.sh" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
setupHook = [ ./setup-hook.sh ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ ];
|
|
|
|
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/NixOS/patchelf/blob/master/README";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
description = "A small utility to modify the dynamic linker and RPATH of ELF executables";
|
|
|
|
maintainers = [ maintainers.eelco ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|