add missing dependency

This commit is contained in:
Adithya 2023-04-06 01:33:37 +05:30
parent e040c530e8
commit 90999017a1
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ lib, stdenvNoCC, makeWrapper, libnotify }:
{ lib, stdenvNoCC, makeWrapper, libnotify, rofi-wayland }:
stdenvNoCC.mkDerivation {
pname = "scripts";
version = "1.0";
@ -11,6 +11,6 @@ stdenvNoCC.mkDerivation {
mkdir -p $out/bin
cp power-menu.sh $out/bin/power-menu
chmod +x $out/bin/power-menu
wrapProgram $out/bin/power-menu --prefix PATH : ${lib.makeBinPath [ libnotify ]}
wrapProgram $out/bin/power-menu --prefix PATH : ${lib.makeBinPath [ libnotify rofi-wayland ]}
'';
}

View file

@ -23,5 +23,5 @@ chpower() {
OPTIONS="Shutdown\nReboot\nHibernate"
chpower "$(printf "%b" "$OPTIONS" | sort | ${dmenu} -p "Power Menu")"
chpower "$(printf "%b" "$OPTIONS" | sort | rofi -dmenu -p "Power Menu")"