about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/razergenie/default.nix
blob: 8f78c0becaf5da762105778860c43b479274a278 (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
41
{ stdenv, fetchFromGitHub, lib, meson, ninja, pkg-config, qtbase, qttools
, wrapQtAppsHook
, enableExperimental ? false
, includeMatrixDiscovery ? false
}:

let
  version = "0.9.0";
  pname = "razergenie";

in stdenv.mkDerivation {
  inherit pname version;

  src = fetchFromGitHub {
    owner = "z3ntu";
    repo = "RazerGenie";
    rev = "v${version}";
    sha256 = "17xlv26q8sdbav00wdm043449pg2424l3yaf8fvkc9rrlqkv13a4";
  };

  nativeBuildInputs = [
    pkg-config meson ninja wrapQtAppsHook
  ];

  buildInputs = [
    qtbase qttools
  ];

  mesonFlags = [
    "-Denable_experimental=${lib.boolToString enableExperimental}"
    "-Dinclude_matrix_discovery=${lib.boolToString includeMatrixDiscovery}"
  ];

  meta = with lib; {
    homepage = "https://github.com/z3ntu/RazerGenie";
    description = "Qt application for configuring your Razer devices under GNU/Linux";
    license = licenses.gpl3;
    maintainers = with maintainers; [ f4814n Mogria ];
    platforms = platforms.linux;
  };
}