all: refactor to follow RFC140
This commit is contained in:
34
pkgs/by-name/am/amdgpu-fan/package.nix
Normal file
34
pkgs/by-name/am/amdgpu-fan/package.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ lib
|
||||
, 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; {
|
||||
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;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user