nur-packages/pkgs/by-name/am/amdgpu-fan/package.nix

35 lines
722 B
Nix
Raw Normal View History

2022-10-26 10:51:44 +11:00
{ lib
2020-10-15 19:05:13 +11:00
, fetchFromGitHub
, python3Packages
}:
python3Packages.buildPythonApplication rec {
pname = "amdgpu-fan";
version = "0.0.6";
src = fetchFromGitHub {
repo = pname;
owner = "chestm007";
rev = version;
sha256 = "1ngfrk6agk8wz0q9426lwrqhbgxc98hrsv0kn6wgz25j1rv9332b";
};
propagatedBuildInputs = with python3Packages; [
numpy
pyyaml
];
patchPhase = ''
substituteInPlace setup.py \
--replace PROJECTVERSION "${version}"
'';
meta = with lib; {
2020-10-15 19:05:13 +11:00
description = "Fan controller for AMD graphics cards running the amdgpu driver on Linux";
homepage = "https://github.com/chestm007/amdgpu-fan";
license = licenses.gpl2;
platforms = platforms.linux;
};
}