* Polkit: look for ‘polkit-agent-helper-1’ in the right location (for
NixOS, that is), i.e., /var/setuid-wrappers. svn path=/nixpkgs/trunk/; revision=28733
This commit is contained in:
parent
b23809b118
commit
b4ca59e17f
@ -33,6 +33,15 @@ stdenv.mkDerivation rec {
|
|||||||
( map (var: ''-DPACKAGE_${var}_DIR=\""${builtins.getAttr var foolVars}"\"'')
|
( map (var: ''-DPACKAGE_${var}_DIR=\""${builtins.getAttr var foolVars}"\"'')
|
||||||
(builtins.attrNames foolVars) );
|
(builtins.attrNames foolVars) );
|
||||||
|
|
||||||
|
preBuild =
|
||||||
|
''
|
||||||
|
# ‘libpolkit-agent-1.so’ should call the setuid wrapper on
|
||||||
|
# NixOS. Hard-coding the path is kinda ugly. Maybe we can just
|
||||||
|
# call through $PATH, but that might have security implications.
|
||||||
|
substituteInPlace src/polkitagent/polkitagentsession.c \
|
||||||
|
--replace PACKAGE_LIBEXEC_DIR '"/var/setuid-wrappers"'
|
||||||
|
'';
|
||||||
|
|
||||||
makeFlags =
|
makeFlags =
|
||||||
''
|
''
|
||||||
INTROSPECTION_GIRDIR=$(out)/share/gir-1.0
|
INTROSPECTION_GIRDIR=$(out)/share/gir-1.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user