69 lines
1.2 KiB
Nix
69 lines
1.2 KiB
Nix
{
|
|
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;
|
|
};
|
|
}
|