Files
nixpkgs/pkgs/development/python-modules/openrazer/daemon.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

82 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
daemonize,
dbus-python,
fetchFromGitHub,
gobject-introspection,
gtk3,
pygobject3,
pyudev,
setproctitle,
setuptools,
wrapGAppsNoGuiHook,
notify2,
glib,
libnotify,
}:
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"
patchShebangs run_openrazer_daemon.py
substituteInPlace run_openrazer_daemon.py \
--replace-fail "/usr/share" "$out/share"
'';
nativeBuildInputs = [
setuptools
wrapGAppsNoGuiHook
gobject-introspection
];
buildInputs = [
glib
gtk3
];
dependencies = [
daemonize
dbus-python
pygobject3
pyudev
setproctitle
notify2
libnotify
];
postInstall = ''
DESTDIR="$out" PREFIX="" make manpages install-resources install-systemd
'';
# no tests run
doCheck = false;
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
meta = common.meta // {
description = "Entirely open source user-space daemon that allows you to manage your Razer peripherals on GNU/Linux";
mainProgram = "openrazer-daemon";
};
}
)