nixpkgs/pkgs/development/tools/misc/patchelf/unstable.nix

41 lines
1.1 KiB
Nix

{ lib, stdenv, fetchurl, autoreconfHook, fetchFromGitHub, unstableGitUpdater }:
stdenv.mkDerivation rec {
pname = "patchelf";
version = "unstable-2023-06-08";
src = fetchFromGitHub {
owner = "NixOS";
repo = "patchelf";
rev = "519766900c63f3cf227c9a38fc7aa8a53fc4f90c";
sha256 = "sha256-NiJr/7kzLN7gnhgbg/12s7E0qe0TJpncQ05zsDLhUFs=";
};
# 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;
};
}