nixpkgs/pkgs/development/python-modules/openrazer/daemon.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

70 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
daemonize,
dbus-python,
fetchFromGitHub,
gobject-introspection,
gtk3,
pygobject3,
pyudev,
setproctitle,
setuptools,
wrapGAppsNoGuiHook,
notify2,
glib
}:
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 gobject-introspection ];
buildInputs = [
glib
gtk3
];
propagatedBuildInputs = [
daemonize
dbus-python
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 = "Entirely open source user-space daemon that allows you to manage your Razer peripherals on GNU/Linux";
mainProgram = "openrazer-daemon";
};
})