rofi: Add option to symlink dmenu (#107146)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
74616e9ec9
commit
f7ac029a1d
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ symlinkJoin, lib, rofi-unwrapped, makeWrapper, wrapGAppsHook, gdk-pixbuf, hicolor-icon-theme, theme ? null, plugins ? [] }:
|
{ symlinkJoin, lib, rofi-unwrapped, makeWrapper, wrapGAppsHook, gdk-pixbuf, hicolor-icon-theme, theme ? null, plugins ? [], symlink-dmenu ? false }:
|
||||||
|
|
||||||
symlinkJoin {
|
symlinkJoin {
|
||||||
name = "rofi-${rofi-unwrapped.version}";
|
name = "rofi-${rofi-unwrapped.version}";
|
||||||
|
@ -29,6 +29,8 @@ symlinkJoin {
|
||||||
${lib.optionalString (theme != null) ''--add-flags "-theme ${theme}"''} \
|
${lib.optionalString (theme != null) ''--add-flags "-theme ${theme}"''} \
|
||||||
${lib.optionalString (plugins != []) ''--add-flags "-plugin-path $out/lib/rofi"''}
|
${lib.optionalString (plugins != []) ''--add-flags "-plugin-path $out/lib/rofi"''}
|
||||||
|
|
||||||
|
${lib.optionalString symlink-dmenu "ln -s ${rofi-unwrapped}/bin/rofi $out/bin/dmenu"}
|
||||||
|
|
||||||
rm $out/bin/rofi-theme-selector
|
rm $out/bin/rofi-theme-selector
|
||||||
makeWrapper ${rofi-unwrapped}/bin/rofi-theme-selector $out/bin/rofi-theme-selector \
|
makeWrapper ${rofi-unwrapped}/bin/rofi-theme-selector $out/bin/rofi-theme-selector \
|
||||||
--prefix XDG_DATA_DIRS : $out/share
|
--prefix XDG_DATA_DIRS : $out/share
|
||||||
|
|
Loading…
Reference in a new issue