nixpkgs/pkgs/by-name/tu/tuxclocker-nvidia-plugin/package.nix
2024-01-31 15:40:32 +02:00

31 lines
553 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
];
mesonFlags = [
"-Ddaemon=false"
"-Dgui=false"
"-Drequire-nvidia=true"
"-Dplugins-cpu=false" # provided by tuxclocker-plugins
];
}