Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 48 lines 858 B view raw
1{ lib 2, buildPythonApplication 3, isPy3k 4, daemonize 5, dbus-python 6, fetchFromGitHub 7, fetchpatch 8, gobject-introspection 9, gtk3 10, makeWrapper 11, pygobject3 12, pyudev 13, setproctitle 14, wrapGAppsHook 15}: 16 17let 18 common = import ./common.nix { inherit lib 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})