tuxclocker/default.nix

65 lines
1.3 KiB
Nix
Raw Normal View History

2021-02-18 09:33:34 -06:00
{ lib
, stdenv
, boost
, cmake
2021-02-25 06:33:48 -06:00
, cudatoolkit
2021-02-18 09:33:34 -06:00
, git
, fetchFromGitHub
, libdrm
2021-02-25 06:33:48 -06:00
, libX11
, libXext
, libXNVCtrl # this is supposed to work, but with the qt5.callPackages thing doesn't?
2021-02-18 09:33:34 -06:00
, meson
, mkDerivation
, ninja
2021-02-25 06:33:48 -06:00
, nvidia_x11
2021-02-18 09:33:34 -06:00
, pkg-config
2021-02-25 06:33:48 -06:00
, qtbase
, qtcharts
2021-02-18 09:33:34 -06:00
}:
mkDerivation rec {
pname = "tuxclocker";
version = "0.1";
src = fetchFromGitHub {
fetchSubmodules = true;
owner = "Lurkki14";
repo = "tuxclocker";
2021-02-25 06:33:48 -06:00
rev = "2557227170cb94be12008bced6b9b3cfd93b8342";
sha256 = "0gncf65hy11zwjf7mpz4k57ik15980mssykj2r1zd6gda48pw832";
#rev = "002c2868118b2fa7d2e8db9d8a84a6b47dd261e5";
#rev = "b0c39bfaeb1b5da20accd0d65dacfd5ac13a6225";
#sha256 = "02jribnk9d9h1y01fbl9pafyz4vybfkma2mv73n7i707gfv6dk2r";
#sha256 = "0a553i6mr9hxlfzvgidsn0ss0hbcr9jdiaknhv59bailalajn58i";
2021-02-18 09:33:34 -06:00
};
# meson 0.57 should fix having to have these
BOOST_INCLUDEDIR = "${lib.getDev boost}/include";
BOOST_LIBRARYDIR = "${lib.getLib boost}/lib";
2021-02-25 06:33:48 -06:00
preConfigure = ''
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libXNVCtrl}/include"
NIX_LDFLAGS="$NIX_LDFLAGS -L${libXNVCtrl}/lib"
'';
2021-02-18 09:33:34 -06:00
nativeBuildInputs = [
pkg-config
];
buildInputs = [
boost
2021-02-25 06:33:48 -06:00
cudatoolkit
2021-02-18 09:33:34 -06:00
libdrm
2021-02-25 06:33:48 -06:00
libXext
2022-03-25 05:59:15 -05:00
libX11
libXNVCtrl
2021-02-18 09:33:34 -06:00
meson
ninja
2021-02-25 06:33:48 -06:00
nvidia_x11
2021-02-18 09:33:34 -06:00
pkg-config
2021-02-25 06:33:48 -06:00
qtbase
qtcharts
2021-02-18 09:33:34 -06:00
];
}