Add a package for amd-debug-tools.
This commit is contained in:
parent
24c14af7f9
commit
2c8725314b
68
pkgs/by-name/am/amd-debug-tools/default.nix
Normal file
68
pkgs/by-name/am/amd-debug-tools/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user