Files
nixpkgs/pkgs/development/tools/misc/patchelf/default.nix
2026-08-02 23:21:24 +02:00

41 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchurl,
}:
# Note: this package is used for bootstrapping fetchurl, and thus
# cannot use fetchpatch! All mutable patches (generated by GitHub or
# cgit) that are needed here should be included directly in Nixpkgs as
# files.
stdenv.mkDerivation (finalAttrs: {
pname = "patchelf";
version = "0.15.2";
src = fetchurl {
url = "https://github.com/NixOS/patchelf/releases/download/${finalAttrs.version}/patchelf-${finalAttrs.version}.tar.bz2";
hash = "sha256-F3RfVkFZyOIo/EEtplogSLhGxLa0Igt3y/IkFuAvLXw=";
};
strictDeps = true;
setupHook = [ ./setup-hook.sh ];
enableParallelBuilding = true;
# fails 8 out of 24 tests, problems when loading libc.so.6
doCheck = stdenv.name == "stdenv-linux";
__structuredAttrs = true;
meta = {
homepage = "https://github.com/NixOS/patchelf";
license = lib.licenses.gpl3Plus;
description = "Small utility to modify the dynamic linker and RPATH of ELF executables";
mainProgram = "patchelf";
maintainers = [ ];
platforms = lib.platforms.all;
};
})