Some kde wrapper improvements.
This commit is contained in:
parent
c887f9e932
commit
48f97bdae0
@ -22,8 +22,8 @@ stdenv.mkDerivation {
|
|||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
ensureDir $out/bin
|
ensureDir $out/bin
|
||||||
|
|
||||||
KDEDIRS=
|
KDEDIRS=${program}
|
||||||
QT_PLUGIN_PATH=
|
QT_PLUGIN_PATH=${program}/lib/qt4/plugins:${program}/lib/kde4/plugins
|
||||||
for a in $libs; do
|
for a in $libs; do
|
||||||
KDEDIRS=$a''${KDEDIRS:+:}$KDEDIRS
|
KDEDIRS=$a''${KDEDIRS:+:}$KDEDIRS
|
||||||
QT_PLUGIN_PATH=$a/lib/qt4/plugins:$a/lib/kde4/plugins''${QT_PLUGIN_PATH:+:}$QT_PLUGIN_PATH
|
QT_PLUGIN_PATH=$a/lib/qt4/plugins:$a/lib/kde4/plugins''${QT_PLUGIN_PATH:+:}$QT_PLUGIN_PATH
|
||||||
@ -31,9 +31,10 @@ stdenv.mkDerivation {
|
|||||||
for a in ${program}/bin/*; do
|
for a in ${program}/bin/*; do
|
||||||
PROG=$out/bin/`basename $a`
|
PROG=$out/bin/`basename $a`
|
||||||
cat > $PROG << END
|
cat > $PROG << END
|
||||||
export KDEDIRS=$KDEDIRS\''${KDEDIRS:+:}\$KDEDIRS
|
#!/bin/sh
|
||||||
export QT_PLUGIN_PATH=$QT_PLUGIN_PATH\''${QT_PLUGIN_PATH:+:}\$QT_PLUGIN_PATH
|
export KDEDIRS=$KDEDIRS\''${KDEDIRS:+:}\$KDEDIRS
|
||||||
exec $a "\$@"
|
export QT_PLUGIN_PATH=$QT_PLUGIN_PATH\''${QT_PLUGIN_PATH:+:}\$QT_PLUGIN_PATH
|
||||||
|
exec $a "\$@"
|
||||||
END
|
END
|
||||||
chmod +x $PROG
|
chmod +x $PROG
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user