Introduce patchShebangsPhase ran in preConfigurePhases

(cherry picked from commit 91c7e8747af1fdc2a70cd98594ccbb12a5c6902d)
Signed-off-by: Domen Kožar <domen@dev.si>
This commit is contained in:
Domen Kožar
2015-01-02 02:58:32 +01:00
parent d8c5d95330
commit 512fbb280f
86 changed files with 17 additions and 178 deletions
@@ -35,9 +35,7 @@ stdenv.mkDerivation rec {
( map (var: ''-DPACKAGE_${var}_DIR=\""${builtins.getAttr var foolVars}"\"'')
(builtins.attrNames foolVars) );
preConfigure = ''
patchShebangs .
'' + stdenv.lib.optionalString useSystemd /* bogus chroot detection */ ''
preConfigure = stdenv.lib.optionalString useSystemd /* bogus chroot detection */ ''
sed '/libsystemd-login autoconfigured, but system does not appear to use systemd/s/.*/:/' -i configure
''
# libpolkit-agent-1.so should call the setuid wrapper on