mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
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 New Issue
Block a user