mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
5aa4b19946
Refs: e6754980264fe927320d5ff2dbd24ca4fac9a160 1e9cc5b9844ef603fe160e9f671178f96200774f 793a2fe1e8bb886ca2096c5904e1193dc3268b6d c19cf65261639f749012454932a532aa7c681e4b f6544d618f30fae0bc4798c4387a8c7c9c047a7c
49 lines
864 B
Nix
49 lines
864 B
Nix
{ buildPythonApplication
|
|
, isPy3k
|
|
, daemonize
|
|
, dbus-python
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, gobject-introspection
|
|
, gtk3
|
|
, makeWrapper
|
|
, pygobject3
|
|
, pyudev
|
|
, setproctitle
|
|
, stdenv
|
|
, wrapGAppsHook
|
|
}:
|
|
|
|
let
|
|
common = import ./common.nix { inherit stdenv fetchFromGitHub; };
|
|
in
|
|
buildPythonApplication (common // rec {
|
|
pname = "openrazer_daemon";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
sourceRoot = "source/daemon";
|
|
|
|
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";
|
|
};
|
|
})
|