2016-09-20 12:57:57 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-08-21 22:58:13 +01:00
|
|
|
name = "patchelf-${version}";
|
2019-05-04 22:41:26 +01:00
|
|
|
version = "0.10-pre-20190328";
|
2016-09-20 12:57:57 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NixOS";
|
|
|
|
repo = "patchelf";
|
2019-05-04 22:41:26 +01:00
|
|
|
rev = "e1e39f3639e39360ceebb2f7ed533cede4623070";
|
|
|
|
sha256 = "09q1b1yqfzg1ih51v7qjh55vxfdbd8x5anycl8sfz6qy107wr02k";
|
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" ""
|
2018-08-21 22:58:13 +01:00
|
|
|
'' +
|
|
|
|
# extend version identifier to more informative than "0.10".
|
|
|
|
''
|
|
|
|
echo -n ${version} > version
|
2018-01-22 21:03:37 +00:00
|
|
|
'';
|
|
|
|
|
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
|
|
|
|
|
|
|
meta = {
|
2017-08-22 19:50:04 +01:00
|
|
|
homepage = https://nixos.org/patchelf.html;
|
2016-09-20 12:57:57 +01:00
|
|
|
license = "GPL";
|
|
|
|
description = "A small utility to modify the dynamic linker and RPATH of ELF executables";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|