fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
65 lines
1.2 KiB
Nix
65 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
daemonize,
|
|
dbus-python,
|
|
fetchFromGitHub,
|
|
gobject-introspection,
|
|
gtk3,
|
|
pygobject3,
|
|
pyudev,
|
|
setproctitle,
|
|
setuptools,
|
|
wrapGAppsNoGuiHook,
|
|
notify2,
|
|
}:
|
|
|
|
let
|
|
common = import ./common.nix { inherit lib fetchFromGitHub; };
|
|
in
|
|
buildPythonPackage (common // {
|
|
pname = "openrazer-daemon";
|
|
|
|
outputs = [
|
|
"out"
|
|
"man"
|
|
];
|
|
|
|
sourceRoot = "${common.src.name}/daemon";
|
|
|
|
postPatch = ''
|
|
substituteInPlace openrazer_daemon/daemon.py \
|
|
--replace-fail "plugdev" "openrazer"
|
|
'';
|
|
|
|
nativeBuildInputs = [ setuptools wrapGAppsNoGuiHook ];
|
|
|
|
propagatedBuildInputs = [
|
|
daemonize
|
|
dbus-python
|
|
gobject-introspection
|
|
gtk3
|
|
pygobject3
|
|
pyudev
|
|
setproctitle
|
|
notify2
|
|
];
|
|
|
|
postInstall = ''
|
|
DESTDIR="$out" PREFIX="" make manpages install-resources install-systemd
|
|
'';
|
|
|
|
# no tests run
|
|
doCheck = false;
|
|
|
|
dontWrapGApps = true;
|
|
|
|
preFixup = ''
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
'';
|
|
|
|
meta = common.meta // {
|
|
description = "An entirely open source user-space daemon that allows you to manage your Razer peripherals on GNU/Linux";
|
|
mainProgram = "openrazer-daemon";
|
|
};
|
|
})
|