rofi: Add option to symlink dmenu (#107146)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

authored by

Samir Hafez
Sandro
and committed by
GitHub
f7ac029a 74616e9e

+3 -1
+3 -1
pkgs/applications/misc/rofi/wrapper.nix
··· 1 - { symlinkJoin, lib, rofi-unwrapped, makeWrapper, wrapGAppsHook, gdk-pixbuf, hicolor-icon-theme, theme ? null, plugins ? [] }: 1 + { symlinkJoin, lib, rofi-unwrapped, makeWrapper, wrapGAppsHook, gdk-pixbuf, hicolor-icon-theme, theme ? null, plugins ? [], symlink-dmenu ? false }: 2 2 3 3 symlinkJoin { 4 4 name = "rofi-${rofi-unwrapped.version}"; ··· 28 28 ${lib.optionalString (plugins != []) ''--prefix XDG_DATA_DIRS : ${lib.concatStringsSep ":" (lib.forEach plugins (p: "${p.out}/share"))}''} \ 29 29 ${lib.optionalString (theme != null) ''--add-flags "-theme ${theme}"''} \ 30 30 ${lib.optionalString (plugins != []) ''--add-flags "-plugin-path $out/lib/rofi"''} 31 + 32 + ${lib.optionalString symlink-dmenu "ln -s ${rofi-unwrapped}/bin/rofi $out/bin/dmenu"} 31 33 32 34 rm $out/bin/rofi-theme-selector 33 35 makeWrapper ${rofi-unwrapped}/bin/rofi-theme-selector $out/bin/rofi-theme-selector \