1 { lib, stdenv, autoreconfHook, fetchFromGitHub, unstableGitUpdater }:
5 version = "0.18.0-unstable-2024-06-15";
7 src = fetchFromGitHub {
10 rev = "a0f54334df36770b335c051e540ba40afcbf8378";
11 sha256 = "sha256-FSoxTcRZMGHNJh8dNtKOkcUtjhmhU6yQXcZZfUPLhQM=";
14 # Drop test that fails on musl (?)
15 postPatch = lib.optionalString stdenv.hostPlatform.isMusl ''
16 substituteInPlace tests/Makefile.am \
17 --replace "set-rpath-library.sh" ""
20 setupHook = [ ./setup-hook.sh ];
22 nativeBuildInputs = [ autoreconfHook ];
25 doCheck = !stdenv.hostPlatform.isDarwin;
28 updateScript = unstableGitUpdater {
29 url = "https://github.com/NixOS/patchelf.git";
34 homepage = "https://github.com/NixOS/patchelf";
35 license = licenses.gpl3;
36 description = "Small utility to modify the dynamic linker and RPATH of ELF executables";
37 mainProgram = "patchelf";
39 platforms = platforms.all;