2020-06-03 15:06:52 +01:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, fetchFromGitHub }:
|
2016-09-20 12:57:57 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-09-22 08:38:09 +01:00
|
|
|
name = "patchelf-${version}";
|
2020-08-18 13:04:51 +01:00
|
|
|
version = "2020-07-11";
|
2016-09-20 12:57:57 +01:00
|
|
|
|
2020-06-03 15:06:52 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NixOS";
|
|
|
|
repo = "patchelf";
|
2020-08-18 13:04:51 +01:00
|
|
|
rev = "126372b636733b160e693c9913e871f6755c02e";
|
|
|
|
sha256 = "07cn40ypys5pyc3jfgxvqj7qk5v6m2rr5brnpmxdsl1557ryx226";
|
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
|
|
|
};
|
|
|
|
}
|