blob: cf1f713848e93c7eb21a6ba1b6f5f6e64ceb84aa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ lib, stdenv, autoreconfHook, fetchFromGitHub, unstableGitUpdater }:
stdenv.mkDerivation rec {
pname = "patchelf";
version = "0.18.0-unstable-2024-06-15";
src = fetchFromGitHub {
owner = "NixOS";
repo = "patchelf";
rev = "a0f54334df36770b335c051e540ba40afcbf8378";
sha256 = "sha256-FSoxTcRZMGHNJh8dNtKOkcUtjhmhU6yQXcZZfUPLhQM=";
};
# Drop test that fails on musl (?)
postPatch = lib.optionalString stdenv.hostPlatform.isMusl ''
substituteInPlace tests/Makefile.am \
--replace "set-rpath-library.sh" ""
'';
setupHook = [ ./setup-hook.sh ];
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ ];
doCheck = !stdenv.isDarwin;
passthru = {
updateScript = unstableGitUpdater {
url = "https://github.com/NixOS/patchelf.git";
};
};
meta = with lib; {
homepage = "https://github.com/NixOS/patchelf";
license = licenses.gpl3;
description = "Small utility to modify the dynamic linker and RPATH of ELF executables";
mainProgram = "patchelf";
maintainers = [ maintainers.eelco ];
platforms = platforms.all;
};
}
|