2019-04-01 15:26:03 +01:00
|
|
|
{ stdenv, fetchurl, autoreconfHook }:
|
2016-09-20 12:57:57 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-01 15:26:03 +01:00
|
|
|
name = "patchelf-${version}";
|
|
|
|
version = "0.10";
|
2016-09-20 12:57:57 +01:00
|
|
|
|
2019-04-01 15:26:03 +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" ""
|
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;
|
|
|
|
};
|
|
|
|
}
|