@@ -0,0 +1,41 @@
1+{ stdenv, fetchFromGitHub, lib, meson, ninja, pkgconfig, qtbase, qttools
2+, wrapQtAppsHook
3+, enableExperimental ? false
4+, includeMatrixDiscovery ? false
5+}:
6+
7+let
8+ version = "0.8.1";
9+ pname = "razergenie";
10+
11+in stdenv.mkDerivation {
12+ inherit pname version;
13+
14+ src = fetchFromGitHub {
15+ owner = "z3ntu";
16+ repo = "RazerGenie";
17+ rev = "v${version}";
18+ sha256 = "1ggxnaidxbbpkv1h3zwwyci6886sssgslk5adbikbhz9kc9qg239";
19+ };
20+
21+ nativeBuildInputs = [
22+ pkgconfig meson ninja wrapQtAppsHook
23+ ];
24+
25+ buildInputs = [
26+ qtbase qttools
27+ ];
28+
29+ mesonFlags = [
30+ "-Denable_experimental=${if enableExperimental then "true" else "false"}"
31+ "-Dinclude_matrix_discovery=${if includeMatrixDiscovery then "true" else "false"}"
32+ ];
33+
34+ meta = with lib; {
35+ homepage = "https://github.com/z3ntu/RazerGenie";
36+ description = "Qt application for configuring your Razer devices under GNU/Linux";
37+ license = licenses.gpl3;
38+ maintainers = with maintainers; [ f4814n ];
39+ platforms = platforms.linux;
40+ };
41+}