1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-25 02:26:19 +03:00
nixpkgs/pkgs/development/python-modules/openrazer/daemon.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
954 B
Nix
Raw Normal View History

{ lib
, buildPythonApplication
, isPy3k
2019-08-28 21:14:32 -04:00
, daemonize
, dbus-python
, fetchFromGitHub
, gobject-introspection
, gtk3
, makeWrapper
, pygobject3
, pyudev
, setproctitle
, wrapGAppsHook
}:
let
common = import ./common.nix { inherit lib fetchFromGitHub; };
2019-08-28 21:14:32 -04:00
in
buildPythonApplication (common // rec {
pname = "openrazer_daemon";
disabled = !isPy3k;
2019-08-28 21:14:32 -04:00
outputs = [ "out" "man" ];
nativeBuildInputs = [ makeWrapper wrapGAppsHook ];
propagatedBuildInputs = [
daemonize
dbus-python
gobject-introspection
gtk3
pygobject3
pyudev
setproctitle
];
prePatch = ''
cd daemon
'';
postPatch = ''
substituteInPlace openrazer_daemon/daemon.py --replace "plugdev" "openrazer"
'';
2019-08-28 21:14:32 -04:00
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";
};
})