forked from mirrors/nixpkgs
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:
parent
65fcb8d503
commit
f122e0e229
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue