depot/third_party/nixpkgs/pkgs/development/tools/misc/patchelf/unstable.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

41 lines
1.1 KiB
Nix

{ lib, stdenv, autoreconfHook, fetchFromGitHub, unstableGitUpdater }:
stdenv.mkDerivation {
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.hostPlatform.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 = [ ];
platforms = platforms.all;
};
}