diff options
author | Elis Hirwing <elis@hirwing.se> | 2020-06-02 17:20:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-02 17:20:57 +0200 |
commit | a823f46be01fe3c88ebb98c1f444d1f85975f4ee (patch) | |
tree | a4f1d8ec2f1b1d8b61dae9d3982779f0630817ac /pkgs/applications | |
parent | 9f15e95ff22ee1254485118979a6bd4b2b5bcd6d (diff) | |
parent | 63045c989cbbc39a3ead4db23aa13b4379d31a9d (diff) |
Merge pull request #84812 from f4814/init-razergenie
razergenie: init at 0.8.1
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/misc/razergenie/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/applications/misc/razergenie/default.nix b/pkgs/applications/misc/razergenie/default.nix new file mode 100644 index 0000000000000..9042ab38e7584 --- /dev/null +++ b/pkgs/applications/misc/razergenie/default.nix @@ -0,0 +1,41 @@ +{ stdenv, fetchFromGitHub, lib, meson, ninja, pkgconfig, qtbase, qttools +, wrapQtAppsHook +, enableExperimental ? false +, includeMatrixDiscovery ? false +}: + +let + version = "0.8.1"; + pname = "razergenie"; + +in stdenv.mkDerivation { + inherit pname version; + + src = fetchFromGitHub { + owner = "z3ntu"; + repo = "RazerGenie"; + rev = "v${version}"; + sha256 = "1ggxnaidxbbpkv1h3zwwyci6886sssgslk5adbikbhz9kc9qg239"; + }; + + nativeBuildInputs = [ + pkgconfig meson ninja wrapQtAppsHook + ]; + + buildInputs = [ + qtbase qttools + ]; + + mesonFlags = [ + "-Denable_experimental=${if enableExperimental then "true" else "false"}" + "-Dinclude_matrix_discovery=${if includeMatrixDiscovery then "true" else "false"}" + ]; + + 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 ]; + platforms = platforms.linux; + }; +} |