2023-04-06 02:39:57 +05:30
|
|
|
{ lib, stdenvNoCC, makeWrapper, libnotify, rofi-wayland, power-profiles-daemon }:
|
|
|
|
|
2023-04-06 01:27:09 +05:30
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
pname = "scripts";
|
|
|
|
src = ./.;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2023-04-06 02:39:57 +05:30
|
|
|
buildInputs = [ libnotify rofi-wayland power-profiles-daemon ];
|
2023-04-06 01:27:09 +05:30
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp power-menu.sh $out/bin/power-menu
|
|
|
|
chmod +x $out/bin/power-menu
|
2023-04-06 01:33:37 +05:30
|
|
|
wrapProgram $out/bin/power-menu --prefix PATH : ${lib.makeBinPath [ libnotify rofi-wayland ]}
|
2023-04-06 02:05:55 +05:30
|
|
|
|
|
|
|
cp power-profiles.sh $out/bin/power-profiles
|
|
|
|
chmod +x $out/bin/power-profiles
|
2023-04-06 02:39:57 +05:30
|
|
|
wrapProgram $out/bin/power-profiles --prefix PATH : ${lib.makeBinPath [ libnotify power-profiles-daemon ]}
|
2023-04-06 01:27:09 +05:30
|
|
|
'';
|
|
|
|
}
|