nixos/tests/userborn: fix setting hostPlatform (#378940)
[NixPkgs.git] / pkgs / applications / misc / razergenie / default.nix
blobca5ac7f4a42ea63cc2dba099afe55f1c0c8987db
2   stdenv,
3   fetchFromGitHub,
4   lib,
5   meson,
6   ninja,
7   pkg-config,
8   qtbase,
9   qttools,
10   wrapQtAppsHook,
11   enableExperimental ? false,
12   includeMatrixDiscovery ? false,
15 let
16   version = "0.9.0";
17   pname = "razergenie";
20 stdenv.mkDerivation {
21   inherit pname version;
23   src = fetchFromGitHub {
24     owner = "z3ntu";
25     repo = "RazerGenie";
26     rev = "v${version}";
27     sha256 = "17xlv26q8sdbav00wdm043449pg2424l3yaf8fvkc9rrlqkv13a4";
28   };
30   nativeBuildInputs = [
31     pkg-config
32     meson
33     ninja
34     wrapQtAppsHook
35   ];
37   buildInputs = [
38     qtbase
39     qttools
40   ];
42   mesonFlags = [
43     "-Denable_experimental=${lib.boolToString enableExperimental}"
44     "-Dinclude_matrix_discovery=${lib.boolToString includeMatrixDiscovery}"
45   ];
47   meta = with lib; {
48     homepage = "https://github.com/z3ntu/RazerGenie";
49     description = "Qt application for configuring your Razer devices under GNU/Linux";
50     mainProgram = "razergenie";
51     license = licenses.gpl3;
52     maintainers = with maintainers; [
53       f4814n
54       Mogria
55     ];
56     platforms = platforms.linux;
57   };