504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
34 lines
653 B
Nix
34 lines
653 B
Nix
{ lib
|
|
, stdenv
|
|
, boost
|
|
, libX11
|
|
, libXext
|
|
, linuxPackages
|
|
, openssl
|
|
, tuxclocker-plugins
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "tuxclocker-nvidia-plugin";
|
|
|
|
inherit (tuxclocker-plugins) src version meta BOOST_INCLUDEDIR BOOST_LIBRARYDIR nativeBuildInputs;
|
|
|
|
buildInputs = [
|
|
boost
|
|
libX11
|
|
libXext
|
|
linuxPackages.nvidia_x11
|
|
linuxPackages.nvidia_x11.settings.libXNVCtrl
|
|
openssl
|
|
];
|
|
|
|
# Build doesn't have a way to disable building the CPU plugin, which is already
|
|
# provided by 'tuxclocker-plugins'
|
|
patches = [ ./no-cpu-plugin.patch ];
|
|
|
|
mesonFlags = [
|
|
"-Ddaemon=false"
|
|
"-Dgui=false"
|
|
"-Drequire-nvidia=true"
|
|
];
|
|
}
|