2021-02-18 09:33:34 -06:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, boost
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitHub
|
2023-12-22 06:24:40 -06:00
|
|
|
, git
|
|
|
|
, haskellPackages
|
2021-02-18 09:33:34 -06:00
|
|
|
, 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";
|
2024-01-28 07:18:29 -06:00
|
|
|
rev = "31230172d7d15e763193453657c8f0a9e5938d98";
|
|
|
|
hash = "sha256-6p2vHZtHk0AMtpGKXpEYcbkazP3F3FAKi6KSL9M14Jw=";
|
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 = [
|
2023-12-22 06:24:40 -06:00
|
|
|
(haskellPackages.ghcWithPackages (p: with p; [ dbus ]))
|
2023-11-06 06:24:15 -06:00
|
|
|
git
|
2021-02-18 09:33:34 -06:00
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
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
|
|
|
];
|
|
|
|
}
|