Something went wrong. Try again.
lol
Something went wrong. Try again.
1.2 kB · 71 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172{ lib, buildPythonPackage, cmake, elfutils, fetchFromGitHub, libdwarf, libiberty, nanobind, ninja, pkg-config, prompt-toolkit, psutil, pyelftools, requests, scikit-build-core, typing-extensions, writableTmpDirAsHomeHook, zlib, zstd,}:
buildPythonPackage (finalAttrs: { pname = "libdebug"; version = "0.9.0";
src = fetchFromGitHub { owner = "libdebug"; repo = "libdebug"; tag = finalAttrs.version;
hash = "sha256-J0ETzqAGufsZyW+XDhJCKwX1rrmDBwlAicvBb1AAiIQ="; };
dontUseCmakeConfigure = true; pyproject = true; build-system = [ scikit-build-core ];
buildInputs = [ libdwarf elfutils zstd libiberty zlib ];
dependencies = [ psutil pyelftools requests prompt-toolkit nanobind typing-extensions ];
nativeBuildInputs = [ pkg-config cmake ninja ];
nativeCheckInputs = [ writableTmpDirAsHomeHook ];
pythonImportsCheck = [ "libdebug" ]; meta = { homepage = "https://github.com/libdebug/libdebug"; description = "Programmatic debugging of userland Linux binaries"; maintainers = with lib.maintainers; [ mrsmoer ]; license = lib.licenses.mit; };})