about summary refs log tree commit diff
path: root/pkgs/by-name/tu/tuxclocker-plugins/package.nix
blob: 12deedd5c56f348aa70586f28e7a69c1835116d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, stdenv
, boost
, cmake
, gettext
, libdrm
, meson
, ninja
, openssl
, pkg-config
, python3
, tuxclocker
}:

stdenv.mkDerivation {
  inherit (tuxclocker) src version meta BOOST_INCLUDEDIR BOOST_LIBRARYDIR;

  pname = "tuxclocker-plugins";

  nativeBuildInputs = [
    gettext
    meson
    ninja
    pkg-config
    (python3.withPackages(p: [ p.hwdata ]))
  ];

  buildInputs = [
    boost
    libdrm
    openssl
  ];

  mesonFlags = [
    "-Ddaemon=false"
    "-Dgui=false"
    "-Drequire-amd=true"
    "-Drequire-python-hwdata=true"
  ];
}