Files
nixpkgs/pkgs/development/python-modules/openrazer/daemon.nix
T
Joachim Fasting 1b813fa016 pythonPackages.openrazer-daemon: python3 only
The build [fails](https://hydra.nixos.org/build/102502339) due to not finding
the python3 interpreter; as far as I can tell, all scripts in the package
refer to python3.

For [ZHF](https://github.com/NixOS/nixpkgs/issues/68361)
2019-10-05 19:28:20 +02:00

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";
sourceRoot = "source/daemon";
disabled = !isPy3k;
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";
};
})