dmenu: Patch in store path to dmenu_run.

If dmenu isn't installed in the user environment, dmenu_run will fail
because it searches $PATH for its own binaries.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig
2014-04-22 07:22:00 +02:00
parent 65fcb8d503
commit f122e0e229

View File

@@ -19,6 +19,10 @@ stdenv.mkDerivation rec {
patches = optional enableXft xftPatch;
postPatch = ''
sed -ri -e 's!\<(dmenu|stest)\>!'"$out/bin"'/&!g' dmenu_run
'';
preConfigure = [ ''sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk'' ];
meta = {