1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 07:04:28 +00:00
nixpkgs/pkgs/tools/system/rocm-smi/default.nix
Daniël de Kok 3cdb918f62 rocm-smi: 3.10.0 -> 4.0.0
No changes compared to the previous release.
2020-12-19 07:59:29 +01:00

31 lines
741 B
Nix

{ lib, buildPythonApplication, fetchFromGitHub }:
buildPythonApplication rec {
pname = "rocm-smi";
version = "4.0.0";
src = fetchFromGitHub {
owner = "RadeonOpenCompute";
repo = "ROC-smi";
rev = "rocm-${version}";
hash = "sha256-0QqaBMkqRVEl89x3hvWQGAgt7LbtMZPhuf7KenQYHaQ=";
};
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;
};
}