razergenie: 0.9.0 -> 1.2.0 (#384900)
This commit is contained in:
@@ -8,51 +8,78 @@
|
||||
qtbase,
|
||||
qttools,
|
||||
wrapQtAppsHook,
|
||||
enableExperimental ? false,
|
||||
includeMatrixDiscovery ? false,
|
||||
cmake,
|
||||
}:
|
||||
|
||||
let
|
||||
version = "0.9.0";
|
||||
pname = "razergenie";
|
||||
libopenrazer = stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libopenrazer";
|
||||
version = "0.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "z3ntu";
|
||||
repo = "libopenrazer";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-bU8Zsm/hM4HbPcoD191zwxU3x7f0i51evtVeD4jqw0U=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
meson
|
||||
ninja
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
qtbase
|
||||
qttools
|
||||
];
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/z3ntu/libopenrazer";
|
||||
description = "Qt wrapper around the D-Bus API from OpenRazer";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
});
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit pname version;
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "razergenie";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "z3ntu";
|
||||
repo = "RazerGenie";
|
||||
rev = "v${version}";
|
||||
sha256 = "17xlv26q8sdbav00wdm043449pg2424l3yaf8fvkc9rrlqkv13a4";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-kw7/Qf6L63PBuyq3TfgU2iGAKX0qLGiq6JgLnN+3tu4=";
|
||||
};
|
||||
|
||||
postUnpack = ''ln -s ${libopenrazer} libopenrazer'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
meson
|
||||
ninja
|
||||
cmake
|
||||
wrapQtAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
qtbase
|
||||
qttools
|
||||
libopenrazer
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
"-Denable_experimental=${lib.boolToString enableExperimental}"
|
||||
"-Dinclude_matrix_discovery=${lib.boolToString includeMatrixDiscovery}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
homepage = "https://github.com/z3ntu/RazerGenie";
|
||||
description = "Qt application for configuring your Razer devices under GNU/Linux";
|
||||
mainProgram = "razergenie";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [
|
||||
license = lib.licenses.gpl3;
|
||||
maintainers = with lib.maintainers; [
|
||||
f4814n
|
||||
Mogria
|
||||
];
|
||||
platforms = platforms.linux;
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user