mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 19:14:14 +00:00
37 lines
691 B
Nix
37 lines
691 B
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication {
|
|
pname = "auto-patchelf";
|
|
version = "0-unstable-2024-08-14";
|
|
pyproject = false;
|
|
|
|
src = ./source;
|
|
|
|
dependencies = with python3Packages; [
|
|
pyelftools
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm755 auto-patchelf.py $out/bin/auto-patchelf
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
makeWrapperArgs = [
|
|
"--set DEFAULT_BINTOOLS $NIX_BINTOOLS"
|
|
];
|
|
|
|
meta = {
|
|
description = "Automatically patch ELF binaries using patchelf";
|
|
mainProgram = "auto-patchelf";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [ Scrumplex ];
|
|
};
|
|
}
|