2024-06-05 15:53:02 +00:00
|
|
|
{ lib, stdenv, autoreconfHook, fetchFromGitHub, unstableGitUpdater }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-02-10 20:34:41 +00:00
|
|
|
pname = "patchelf";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.18.0-unstable-2024-01-15";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NixOS";
|
|
|
|
repo = "patchelf";
|
2024-01-25 14:12:00 +00:00
|
|
|
rev = "7c2f768bf9601268a4e71c2ebe91e2011918a70f";
|
|
|
|
sha256 = "sha256-PPXqKY2hJng4DBVE0I4xshv/vGLUskL7jl53roB8UdU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Drop test that fails on musl (?)
|
2021-02-05 17:12:51 +00:00
|
|
|
postPatch = lib.optionalString stdenv.hostPlatform.isMusl ''
|
2020-04-24 23:36:52 +00:00
|
|
|
substituteInPlace tests/Makefile.am \
|
|
|
|
--replace "set-rpath-library.sh" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
setupHook = [ ./setup-hook.sh ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ ];
|
|
|
|
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = unstableGitUpdater {
|
|
|
|
url = "https://github.com/NixOS/patchelf.git";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2021-09-22 15:38:15 +00:00
|
|
|
homepage = "https://github.com/NixOS/patchelf";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
description = "A small utility to modify the dynamic linker and RPATH of ELF executables";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "patchelf";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.eelco ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|