1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00
nixpkgs/pkgs/applications/misc/razergenie/default.nix

42 lines
997 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, lib, meson, ninja, pkg-config, qtbase, qttools
2020-04-09 15:52:44 +01:00
, wrapQtAppsHook
, enableExperimental ? false
, includeMatrixDiscovery ? false
}:
let
version = "0.9.0";
2020-04-09 15:52:44 +01:00
pname = "razergenie";
in stdenv.mkDerivation {
inherit pname version;
src = fetchFromGitHub {
owner = "z3ntu";
repo = "RazerGenie";
rev = "v${version}";
sha256 = "17xlv26q8sdbav00wdm043449pg2424l3yaf8fvkc9rrlqkv13a4";
2020-04-09 15:52:44 +01:00
};
nativeBuildInputs = [
pkg-config meson ninja wrapQtAppsHook
2020-04-09 15:52:44 +01:00
];
buildInputs = [
qtbase qttools
];
mesonFlags = [
"-Denable_experimental=${lib.boolToString enableExperimental}"
"-Dinclude_matrix_discovery=${lib.boolToString includeMatrixDiscovery}"
2020-04-09 15:52:44 +01:00
];
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 ];
2020-04-09 15:52:44 +01:00
platforms = platforms.linux;
};
}