parent
7200896974
commit
dc0061e016
|
@ -16,8 +16,6 @@ in rec {
|
||||||
|
|
||||||
navidrome-bin = callPackage ./pkgs/navidrome-bin { };
|
navidrome-bin = callPackage ./pkgs/navidrome-bin { };
|
||||||
|
|
||||||
ryzenadj = callPackage ./pkgs/ryzenadj { };
|
|
||||||
|
|
||||||
ryzen_smu = callPackage ./pkgs/ryzen_smu { kernel = pkgs.linux; };
|
ryzen_smu = callPackage ./pkgs/ryzen_smu { kernel = pkgs.linux; };
|
||||||
|
|
||||||
} // optionalAttrs (builtins.elem pkgs.system pkgs.lib.platforms.linux) rec {
|
} // optionalAttrs (builtins.elem pkgs.system pkgs.lib.platforms.linux) rec {
|
||||||
|
|
|
@ -39,7 +39,6 @@
|
||||||
} // prev.lib.optionalAttrs (prev.system == "x86_64-linux") rec {
|
} // prev.lib.optionalAttrs (prev.system == "x86_64-linux") rec {
|
||||||
inherit (localPkgs)
|
inherit (localPkgs)
|
||||||
navidrome-bin
|
navidrome-bin
|
||||||
ryzenadj
|
|
||||||
ryzen_smu
|
ryzen_smu
|
||||||
;
|
;
|
||||||
} // prev.lib.optionalAttrs (builtins.elem prev.system prev.lib.platforms.linux) rec {
|
} // prev.lib.optionalAttrs (builtins.elem prev.system prev.lib.platforms.linux) rec {
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
{ stdenv, lib, fetchFromGitHub, cmake, pciutils, ... }:
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "ryzenadj";
|
|
||||||
version = "0.8.2";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "FlyGoat";
|
|
||||||
repo = pname;
|
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "sha256-jRrIhKlejX0Yt1wkF/MBJk/6DAIGWWRK9oReCplNVKA=";
|
|
||||||
};
|
|
||||||
nativeBuildInputs = [ cmake pciutils ];
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
install -D -m0755 ryzenadj $out/bin/ryzenadj
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Adjust power management settings for Ryzen mobile processors";
|
|
||||||
homepage = src.meta.homepage;
|
|
||||||
license = licenses.lgpl3;
|
|
||||||
maintainers = with maintainers; [ aw ];
|
|
||||||
platforms = [ "x86_64-linux" ];
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in New Issue