forked from mirrors/nixpkgs
arandr: Use wrapGAppsHook
This stops arandr from crashing if it tries to open a dialog box. Note: the hook doesn't play nicely with gobject-introspection unless strictDeps = false. See NixOS#56943.
This commit is contained in:
parent
75bc4369ee
commit
1c3aa30c3d
|
@ -1,4 +1,7 @@
|
||||||
{ stdenv, fetchurl, gobject-introspection, gtk3, xrandr, python3Packages }:
|
{ stdenv, fetchurl, python3Packages
|
||||||
|
, gobject-introspection, gsettings-desktop-schemas, gtk3
|
||||||
|
, wrapGAppsHook, xrandr
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (python3Packages) buildPythonApplication docutils pygobject3;
|
inherit (python3Packages) buildPythonApplication docutils pygobject3;
|
||||||
|
@ -17,13 +20,13 @@ in buildPythonApplication rec {
|
||||||
# no tests
|
# no tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
buildInputs = [ docutils ];
|
# hook for gobject-introspection doesn't like strictDeps
|
||||||
nativeBuildInputs = [ gobject-introspection gtk3 ];
|
# https://github.com/NixOS/nixpkgs/issues/56943
|
||||||
propagatedBuildInputs = [ xrandr pygobject3 ];
|
strictDeps = false;
|
||||||
|
|
||||||
makeWrapperArgs = [
|
buildInputs = [ docutils gsettings-desktop-schemas gtk3 ];
|
||||||
"--set GI_TYPELIB_PATH $GI_TYPELIB_PATH"
|
nativeBuildInputs = [ gobject-introspection wrapGAppsHook ];
|
||||||
];
|
propagatedBuildInputs = [ xrandr pygobject3 ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://christian.amsuess.com/tools/arandr/;
|
homepage = http://christian.amsuess.com/tools/arandr/;
|
||||||
|
|
Loading…
Reference in a new issue