Merge pull request #314957 from SuperSandro2000/openrazer-daemon
python311Packages.openrazer: fix gobjects, double wrapping
This commit is contained in:
commit
6f575c99d9
@ -6,58 +6,60 @@
|
||||
fetchFromGitHub,
|
||||
gobject-introspection,
|
||||
gtk3,
|
||||
makeWrapper,
|
||||
pygobject3,
|
||||
pyudev,
|
||||
setproctitle,
|
||||
setuptools,
|
||||
wrapGAppsHook3,
|
||||
wrapGAppsNoGuiHook,
|
||||
notify2,
|
||||
}:
|
||||
|
||||
let
|
||||
common = import ./common.nix { inherit lib fetchFromGitHub; };
|
||||
in
|
||||
buildPythonPackage (
|
||||
common
|
||||
// {
|
||||
pname = "openrazer-daemon";
|
||||
buildPythonPackage (common // {
|
||||
pname = "openrazer-daemon";
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
"man"
|
||||
];
|
||||
outputs = [
|
||||
"out"
|
||||
"man"
|
||||
];
|
||||
|
||||
sourceRoot = "${common.src.name}/daemon";
|
||||
sourceRoot = "${common.src.name}/daemon";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace openrazer_daemon/daemon.py \
|
||||
--replace-fail "plugdev" "openrazer"
|
||||
'';
|
||||
postPatch = ''
|
||||
substituteInPlace openrazer_daemon/daemon.py \
|
||||
--replace-fail "plugdev" "openrazer"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
nativeBuildInputs = [ setuptools wrapGAppsNoGuiHook ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
daemonize
|
||||
dbus-python
|
||||
gobject-introspection
|
||||
gtk3
|
||||
pygobject3
|
||||
pyudev
|
||||
setproctitle
|
||||
notify2
|
||||
];
|
||||
propagatedBuildInputs = [
|
||||
daemonize
|
||||
dbus-python
|
||||
gobject-introspection
|
||||
gtk3
|
||||
pygobject3
|
||||
pyudev
|
||||
setproctitle
|
||||
notify2
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
DESTDIR="$out" PREFIX="" make manpages install-resources install-systemd
|
||||
'';
|
||||
postInstall = ''
|
||||
DESTDIR="$out" PREFIX="" make manpages install-resources install-systemd
|
||||
'';
|
||||
|
||||
# no tests run
|
||||
doCheck = false;
|
||||
# no tests run
|
||||
doCheck = false;
|
||||
|
||||
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";
|
||||
};
|
||||
}
|
||||
)
|
||||
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";
|
||||
};
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user