nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 acpica-tools,
3 ethtool,
4 fetchgit,
5 lib,
6 libdisplay-info,
7 python3Packages,
8}:
9
10python3Packages.buildPythonApplication rec {
11 pname = "amd-debug-tools";
12 version = "0.2.10";
13 pyproject = true;
14
15 src = fetchgit {
16 url = "https://git.kernel.org/pub/scm/linux/kernel/git/superm1/amd-debug-tools.git";
17 rev = version;
18 hash = "sha256-tbykQ8tc6YKHjKEHA9Ml7Z7MjDQzMGXtTwMG9buiovg=";
19 };
20
21 build-system = with python3Packages; [
22 setuptools
23 setuptools-scm
24 ];
25
26 dependencies = with python3Packages; [
27 dbus-fast
28 jinja2
29 matplotlib
30 packaging
31 pandas
32 pyudev
33 seaborn
34 tabulate
35 ];
36
37 # Not available in nixpkgs as of 2025-11-15.
38 pythonRemoveDeps = [
39 "cysystemd"
40 ];
41
42 makeWrapperArgs = [
43 "--prefix PATH : ${
44 lib.makeBinPath [
45 acpica-tools
46 ethtool
47 libdisplay-info
48 ]
49 }"
50 ];
51
52 # Tests require hardware-specific features
53 doCheck = false;
54
55 meta = {
56 description = "Debug tools for AMD systems";
57 homepage = "https://git.kernel.org/pub/scm/linux/kernel/git/superm1/amd-debug-tools.git/";
58 license = lib.licenses.mit;
59 maintainers = with lib.maintainers; [ samuela ];
60 platforms = lib.platforms.linux;
61 mainProgram = "amd-s2idle";
62 };
63}