refactor hooks
This commit is contained in:
parent
edf76dd1d0
commit
93b23ce466
1 changed files with 10 additions and 5 deletions
|
@ -19,28 +19,33 @@ stdenvNoCC.mkDerivation {
|
|||
src = ./.;
|
||||
|
||||
nativeBuildInputs = [makeWrapper];
|
||||
buildInputs = [libnotify rofi-wayland tmux kitty];
|
||||
|
||||
installPhase = ''
|
||||
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 rofi-wayland hyprland]}
|
||||
|
||||
cp tmux-sessions.sh $out/bin/tmux-sessions
|
||||
chmod +x $out/bin/tmux-sessions
|
||||
wrapProgram $out/bin/tmux-sessions --prefix PATH : ${lib.makeBinPath [tmux kitty rofi-wayland]}
|
||||
|
||||
cp chpaper.sh $out/bin/chpaper
|
||||
chmod +x $out/bin/chpaper
|
||||
wrapProgram $out/bin/chpaper --prefix PATH : ${lib.makeBinPath [imagemagick libnotify swww]}
|
||||
|
||||
cp wallhaven.sh $out/bin/wallhaven
|
||||
chmod +x $out/bin/wallhaven
|
||||
wrapProgram $out/bin/wallhaven --prefix PATH : ${lib.makeBinPath [imagemagick libnotify jq curl]}
|
||||
|
||||
cp youtube.sh $out/bin/youtube
|
||||
chmod +x $out/bin/youtube
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/power-menu --prefix PATH : ${lib.makeBinPath [libnotify rofi-wayland hyprland]}
|
||||
wrapProgram $out/bin/tmux-sessions --prefix PATH : ${lib.makeBinPath [tmux kitty rofi-wayland]}
|
||||
wrapProgram $out/bin/chpaper --prefix PATH : ${lib.makeBinPath [imagemagick libnotify swww]}
|
||||
wrapProgram $out/bin/wallhaven --prefix PATH : ${lib.makeBinPath [imagemagick libnotify jq curl]}
|
||||
wrapProgram $out/bin/youtube --prefix PATH : ${lib.makeBinPath [kitty ytfzf rofi-wayland]}
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue