mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2024-11-22 08:16:25 -06:00
61 lines
1.0 KiB
Nix
61 lines
1.0 KiB
Nix
{ lib
|
|
, stdenv
|
|
, boost
|
|
, cmake
|
|
, cudatoolkit
|
|
, git
|
|
, fetchFromGitHub
|
|
, libdrm
|
|
, libX11
|
|
, libXext
|
|
, libXNVCtrl # this is supposed to work, but with the qt5.callPackages thing doesn't?
|
|
, meson
|
|
, mkDerivation
|
|
, ninja
|
|
, nvidia_x11
|
|
, pkg-config
|
|
, qtbase
|
|
, qtcharts
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "tuxclocker";
|
|
version = "0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
fetchSubmodules = true;
|
|
owner = "Lurkki14";
|
|
repo = "tuxclocker";
|
|
rev = "03b2e655f160c5d324e990ed790a9f2357286c8c";
|
|
hash = "sha256-4oMHkaHPuXx/kgC1lgPSW1EePN8YsJLvXoLLPm/FKFs=";
|
|
};
|
|
|
|
# meson 0.57 should fix having to have these
|
|
BOOST_INCLUDEDIR = "${lib.getDev boost}/include";
|
|
BOOST_LIBRARYDIR = "${lib.getLib boost}/lib";
|
|
|
|
preConfigure = ''
|
|
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libXNVCtrl}/include"
|
|
NIX_LDFLAGS="$NIX_LDFLAGS -L${libXNVCtrl}/lib"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
boost
|
|
cudatoolkit
|
|
libdrm
|
|
libXext
|
|
libX11
|
|
libXNVCtrl
|
|
meson
|
|
ninja
|
|
nvidia_x11
|
|
pkg-config
|
|
qtbase
|
|
qtcharts
|
|
];
|
|
}
|