1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

rofi: add plugins' share directories to XDG_DATA_DIRS

This commit is contained in:
Cole Helbling 2020-03-31 12:01:47 -07:00
parent 7fce01fd6a
commit f0fe89357e
No known key found for this signature in database
GPG key ID: B37E0F2371016A4C

View file

@ -18,6 +18,7 @@ symlinkJoin {
rm $out/bin/rofi rm $out/bin/rofi
makeWrapper ${rofi-unwrapped}/bin/rofi $out/bin/rofi \ makeWrapper ${rofi-unwrapped}/bin/rofi $out/bin/rofi \
--prefix XDG_DATA_DIRS : ${hicolor-icon-theme}/share \ --prefix XDG_DATA_DIRS : ${hicolor-icon-theme}/share \
${lib.optionalString (plugins != []) ''--prefix XDG_DATA_DIRS : ${lib.concatStringsSep ":" (lib.forEach plugins (p: "${p.out}/share"))}''} \
${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"''}