create amdgpu-clocks package
This commit is contained in:
parent
d557ddf4b2
commit
4b72f8c309
27
pkgs/amdgpu-clocks/default.nix
Normal file
27
pkgs/amdgpu-clocks/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, bash
|
||||||
|
, subversion
|
||||||
|
, makeWrapper
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "amdgpu-clocks";
|
||||||
|
version = "973139a";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
# https://github.com/sibradzic/amdgpu-clocks
|
||||||
|
owner = "sibradzic";
|
||||||
|
repo = "amdgpu-clocks";
|
||||||
|
rev = "973139a5933bd315aa99332b642305ef5ef49a32";
|
||||||
|
sha256 = "sha256-mZV4ECNG9X6SDIWl6P0nHrxa4kGU1h/hFdMcswbEYrk=";
|
||||||
|
};
|
||||||
|
buildInputs = [ bash subversion ];
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp amdgpu-clocks $out/bin/amdgpu-clocks
|
||||||
|
wrapProgram $out/bin/amdgpu-clocks \
|
||||||
|
--prefix PATH : ${lib.makeBinPath [ bash subversion ]}
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue