2020-06-02 18:00:15 +00:00
|
|
|
{ stdenv, fetchFromGitHub, lib, meson, ninja, pkgconfig, qtbase, qttools
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, enableExperimental ? false
|
|
|
|
, includeMatrixDiscovery ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2021-01-17 00:15:33 +00:00
|
|
|
version = "0.9.0";
|
2020-06-02 18:00:15 +00:00
|
|
|
pname = "razergenie";
|
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "z3ntu";
|
|
|
|
repo = "RazerGenie";
|
|
|
|
rev = "v${version}";
|
2021-01-17 00:15:33 +00:00
|
|
|
sha256 = "17xlv26q8sdbav00wdm043449pg2424l3yaf8fvkc9rrlqkv13a4";
|
2020-06-02 18:00:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig meson ninja wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase qttools
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
2020-10-27 00:29:36 +00:00
|
|
|
"-Denable_experimental=${lib.boolToString enableExperimental}"
|
|
|
|
"-Dinclude_matrix_discovery=${lib.boolToString includeMatrixDiscovery}"
|
2020-06-02 18:00:15 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/z3ntu/RazerGenie";
|
|
|
|
description = "Qt application for configuring your Razer devices under GNU/Linux";
|
|
|
|
license = licenses.gpl3;
|
2021-01-17 00:15:33 +00:00
|
|
|
maintainers = with maintainers; [ f4814n Mogria ];
|
2020-06-02 18:00:15 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|