2025-08-17 09:37:06 -04:00
|
|
|
# unpackPhase
|
|
|
|
# patchPhase
|
|
|
|
# configurePhase
|
|
|
|
# buildPhase
|
|
|
|
# checkPhase
|
|
|
|
# installPhase
|
|
|
|
# fixupPhase
|
|
|
|
# installCheckPhase
|
|
|
|
# distPhase
|
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
pkgs,
|
|
|
|
sqlite,
|
|
|
|
makeWrapper,
|
|
|
|
lib,
|
|
|
|
python3,
|
2025-08-17 20:32:20 -04:00
|
|
|
callPackage,
|
2025-08-17 11:43:40 -04:00
|
|
|
# python3Packages,
|
2025-08-17 20:48:35 -04:00
|
|
|
acpica-tools,
|
|
|
|
ethtool,
|
|
|
|
libdisplay-info,
|
2025-08-17 09:37:06 -04:00
|
|
|
...
|
|
|
|
}:
|
2025-08-17 11:43:40 -04:00
|
|
|
let
|
|
|
|
version = "0.2.7";
|
|
|
|
in
|
|
|
|
python3.pkgs.buildPythonApplication {
|
|
|
|
pname = "amd-debug-tools";
|
|
|
|
version = version;
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
# name = "amd-debug-tools";
|
|
|
|
# format = "pyproject";
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
setuptools
|
|
|
|
setuptools-git-versioning
|
|
|
|
setuptools-git
|
|
|
|
pyudev
|
|
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2025-08-17 20:32:20 -04:00
|
|
|
(callPackage ./cysystemd.nix { })
|
2025-08-17 11:43:40 -04:00
|
|
|
jinja2
|
|
|
|
matplotlib
|
2025-08-17 20:32:20 -04:00
|
|
|
pandas
|
|
|
|
pyudev
|
2025-08-17 11:43:40 -04:00
|
|
|
seaborn
|
2025-08-17 20:32:20 -04:00
|
|
|
tabulate
|
2025-08-17 20:48:35 -04:00
|
|
|
acpica-tools
|
|
|
|
ethtool
|
|
|
|
libdisplay-info
|
2025-08-17 11:43:40 -04:00
|
|
|
];
|
2025-08-17 09:37:06 -04:00
|
|
|
src = pkgs.fetchgit {
|
2025-08-17 11:43:40 -04:00
|
|
|
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;
|
2025-08-17 09:37:06 -04:00
|
|
|
};
|
2025-08-17 11:43:40 -04:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace-fail ', "setuptools-git-versioning>=2.0,<3"' ""
|
2025-08-17 09:37:06 -04:00
|
|
|
'';
|
2025-08-17 11:43:40 -04:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
2025-08-17 09:37:06 -04:00
|
|
|
}
|