From 90999017a15cea2a1cd1f0fc7a9ce0aef70415ad Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Thu, 6 Apr 2023 01:33:37 +0530 Subject: [PATCH] add missing dependency --- packages/scripts/default.nix | 4 ++-- packages/scripts/power-menu.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/scripts/default.nix b/packages/scripts/default.nix index 98e91f6..d198e82 100644 --- a/packages/scripts/default.nix +++ b/packages/scripts/default.nix @@ -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 ]} ''; } diff --git a/packages/scripts/power-menu.sh b/packages/scripts/power-menu.sh index 113f1eb..5112442 100644 --- a/packages/scripts/power-menu.sh +++ b/packages/scripts/power-menu.sh @@ -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")"