2021-01-11 07:54:33 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
2019-10-05 18:25:50 +01:00
|
|
|
, isPy3k
|
2019-08-29 02:14:32 +01:00
|
|
|
, daemonize
|
|
|
|
, dbus-python
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
|
|
|
, makeWrapper
|
|
|
|
, pygobject3
|
|
|
|
, pyudev
|
|
|
|
, setproctitle
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2021-01-25 08:26:54 +00:00
|
|
|
common = import ./common.nix { inherit lib fetchFromGitHub; };
|
2019-08-29 02:14:32 +01:00
|
|
|
in
|
|
|
|
buildPythonApplication (common // rec {
|
|
|
|
pname = "openrazer_daemon";
|
|
|
|
|
2019-10-05 18:25:50 +01:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2019-10-07 16:20:23 +01:00
|
|
|
sourceRoot = "source/daemon";
|
|
|
|
|
2019-08-29 02:14:32 +01:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper wrapGAppsHook ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
daemonize
|
|
|
|
dbus-python
|
|
|
|
gobject-introspection
|
|
|
|
gtk3
|
|
|
|
pygobject3
|
|
|
|
pyudev
|
|
|
|
setproctitle
|
|
|
|
];
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
DESTDIR="$out" PREFIX="" make install manpages
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = common.meta // {
|
|
|
|
description = "An entirely open source user-space daemon that allows you to manage your Razer peripherals on GNU/Linux";
|
|
|
|
};
|
|
|
|
})
|