71 lines
1.4 KiB
Nix
71 lines
1.4 KiB
Nix
# unpackPhase
|
|
# patchPhase
|
|
# configurePhase
|
|
# buildPhase
|
|
# checkPhase
|
|
# installPhase
|
|
# fixupPhase
|
|
# installCheckPhase
|
|
# distPhase
|
|
{
|
|
stdenv,
|
|
pkgs,
|
|
sqlite,
|
|
makeWrapper,
|
|
lib,
|
|
python3,
|
|
callPackage,
|
|
# python3Packages,
|
|
acpica-tools,
|
|
ethtool,
|
|
libdisplay-info,
|
|
...
|
|
}:
|
|
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; [
|
|
(callPackage ./cysystemd.nix { })
|
|
jinja2
|
|
matplotlib
|
|
pandas
|
|
pyudev
|
|
seaborn
|
|
tabulate
|
|
acpica-tools
|
|
ethtool
|
|
libdisplay-info
|
|
];
|
|
src = pkgs.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;
|
|
};
|
|
}
|