aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/tools/system/rocm-smi/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/system/rocm-smi/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/system/rocm-smi/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/system/rocm-smi/default.nix b/nixpkgs/pkgs/tools/system/rocm-smi/default.nix
new file mode 100644
index 00000000000..8cbc56e0468
--- /dev/null
+++ b/nixpkgs/pkgs/tools/system/rocm-smi/default.nix
@@ -0,0 +1,30 @@
+{ lib, buildPythonApplication, fetchFromGitHub }:
+
+buildPythonApplication rec {
+ pname = "rocm-smi";
+ version = "3.7.0";
+
+ src = fetchFromGitHub {
+ owner = "RadeonOpenCompute";
+ repo = "ROC-smi";
+ rev = "rocm-${version}";
+ sha256 = "00g9cbni73x9da05lx7hiffp303mdkj1wpxiavfylr4q4z84yhrz";
+ };
+
+ format = "other";
+
+ dontConfigure = true;
+ dontBuild = true;
+
+ installPhase = ''
+ install -Dm0755 rocm_smi.py $out/bin/rocm-smi
+ '';
+
+ meta = with lib; {
+ description = "System management interface for AMD GPUs supported by ROCm";
+ homepage = "https://github.com/RadeonOpenCompute/ROC-smi";
+ license = with licenses; [ mit ];
+ maintainers = with maintainers; [ danieldk ];
+ platforms = platforms.linux;
+ };
+}