1{ buildPythonApplication
2, isPy3k
3, daemonize
4, dbus-python
5, fetchFromGitHub
6, fetchpatch
7, gobject-introspection
8, gtk3
9, makeWrapper
10, pygobject3
11, pyudev
12, setproctitle
13, stdenv
14, wrapGAppsHook
15}:
16
17let
18 common = import ./common.nix { inherit stdenv fetchFromGitHub; };
19in
20buildPythonApplication (common // rec {
21 pname = "openrazer_daemon";
22
23 disabled = !isPy3k;
24
25 sourceRoot = "source/daemon";
26
27 outputs = [ "out" "man" ];
28
29 nativeBuildInputs = [ makeWrapper wrapGAppsHook ];
30
31 propagatedBuildInputs = [
32 daemonize
33 dbus-python
34 gobject-introspection
35 gtk3
36 pygobject3
37 pyudev
38 setproctitle
39 ];
40
41 postBuild = ''
42 DESTDIR="$out" PREFIX="" make install manpages
43 '';
44
45 meta = common.meta // {
46 description = "An entirely open source user-space daemon that allows you to manage your Razer peripherals on GNU/Linux";
47 };
48})