mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 19:23:50 +00:00
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ lib, stdenv, fetchurl, autoreconfHook, fetchFromGitHub, unstableGitUpdater }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "patchelf";
|
|
version = "unstable-2023-03-27";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "NixOS";
|
|
repo = "patchelf";
|
|
rev = "99db062953e88c26e1b1ae5120b8f8bd9f8d9b90";
|
|
sha256 = "sha256-6UQR7pmaeIv4G/eymgrFXXfrh3ODfsqIIAu0A44N/6g=";
|
|
};
|
|
|
|
# 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 = "A small utility to modify the dynamic linker and RPATH of ELF executables";
|
|
maintainers = [ maintainers.eelco ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|