depot/pkgs/by-name/au/auto-patchelf/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

36 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 ];
};
}