From 4b72f8c3093d148712a061a7965dce7495d60f4f Mon Sep 17 00:00:00 2001 From: sajenim Date: Mon, 1 Apr 2024 10:02:02 +0800 Subject: [PATCH] create amdgpu-clocks package --- pkgs/amdgpu-clocks/default.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pkgs/amdgpu-clocks/default.nix diff --git a/pkgs/amdgpu-clocks/default.nix b/pkgs/amdgpu-clocks/default.nix new file mode 100644 index 0000000..a049817 --- /dev/null +++ b/pkgs/amdgpu-clocks/default.nix @@ -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 ]} + ''; + } +