[Packages] Add amdctl

This commit is contained in:
Antoine Viallon 2023-02-27 19:49:19 +01:00
parent d664d01f85
commit c980025f2d
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
2 changed files with 26 additions and 0 deletions

25
packages/amdctl.nix Normal file
View file

@ -0,0 +1,25 @@
{
stdenv,
cmake,
fetchFromGitHub
}:
stdenv.mkDerivation rec {
name = "amdctl";
version = "0.11";
nativeBuildInputs = [
cmake
];
src = fetchFromGitHub {
owner = "kevinlekiller";
repo = "amdctl";
rev = "v${version}";
sha256 = "sha256-2wBk/9aAD7ARMGbcVxk+CzEvUf8U4RS4ZwTCj8cHNNo=";
};
installPhase = ''
mkdir -p $out/bin
cp amdctl $out/bin
'';
}