Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 48 lines 864 B view raw
1{ buildPythonApplication 2, daemonize 3, dbus-python 4, fetchFromGitHub 5, fetchpatch 6, gobject-introspection 7, gtk3 8, makeWrapper 9, pygobject3 10, pyudev 11, setproctitle 12, stdenv 13, wrapGAppsHook 14, isPy3k 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})