Add a package for amd-debug-tools.

This commit is contained in:
Tom Alexander 2025-08-22 18:30:42 -04:00
parent 24c14af7f9
commit 2c8725314b
No known key found for this signature in database
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1,68 @@
{
lib,
buildPythonApplication,
fetchgit,
pythonOlder,
acpica-tools,
cysystemd,
cython,
ethtool,
jinja2,
libdisplay-info,
matplotlib,
pandas,
pkg-config,
pyudev,
seaborn,
setuptools,
setuptools-git,
setuptools-git-versioning,
systemd,
tabulate,
}:
let
version = "0.2.7";
in
buildPythonApplication {
pname = "amd-debug-tools";
version = version;
format = "pyproject";
nativeBuildInputs = [
setuptools
setuptools-git-versioning
setuptools-git
pyudev
];
propagatedBuildInputs = [
cysystemd
jinja2
matplotlib
pandas
pyudev
seaborn
tabulate
acpica-tools
ethtool
libdisplay-info
];
src = fetchgit {
url = "https://git.kernel.org/pub/scm/linux/kernel/git/superm1/amd-debug-tools.git";
tag = version;
sha256 = "sha256-6X9cUKN0BkkKcYGU+YJYCGT+l5iUZDN+D8Fqq/ns98Q=";
leaveDotGit = true;
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail ', "setuptools-git-versioning>=2.0,<3"' ""
'';
meta = with lib; {
description = "Debug tools for AMD zen systems";
homepage = "https://git.kernel.org/pub/scm/linux/kernel/git/superm1/amd-debug-tools.git/";
license = licenses.mit;
platforms = platforms.linux;
};
}

View File

@ -208,6 +208,8 @@ with pkgs;
aider-chat-full = aider-chat.withOptional { withAll = true; };
amd-debug-tools = callPackage ../by-name/am/amd-debug-tools/package.nix { };
autoreconfHook = callPackage (
{
makeSetupHook,