configuration.nix/packages/scripts/default.nix

43 lines
1 KiB
Nix
Raw Normal View History

2023-05-18 16:11:26 +05:30
{
lib,
stdenvNoCC,
makeWrapper,
libnotify,
rofi-wayland,
tmux,
kitty,
imagemagick,
sway,
hyprland,
swww,
jq,
curl,
}:
2023-04-06 01:27:09 +05:30
stdenvNoCC.mkDerivation {
pname = "scripts";
2023-04-06 02:45:10 +05:30
version = "0.1";
2023-04-06 01:27:09 +05:30
src = ./.;
2023-05-18 16:11:26 +05:30
nativeBuildInputs = [makeWrapper];
buildInputs = [libnotify rofi-wayland tmux kitty];
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-05-18 16:11:26 +05:30
wrapProgram $out/bin/power-menu --prefix PATH : ${lib.makeBinPath [libnotify rofi-wayland sway hyprland]}
2023-04-06 03:08:26 +05:30
cp tmux-sessions.sh $out/bin/tmux-sessions
chmod +x $out/bin/tmux-sessions
2023-05-18 16:11:26 +05:30
wrapProgram $out/bin/tmux-sessions --prefix PATH : ${lib.makeBinPath [tmux kitty rofi-wayland]}
2023-04-06 03:29:01 +05:30
cp chpaper.sh $out/bin/chpaper
chmod +x $out/bin/chpaper
2023-05-18 16:11:26 +05:30
wrapProgram $out/bin/chpaper --prefix PATH : ${lib.makeBinPath [imagemagick libnotify swww]}
2023-05-16 00:19:04 +05:30
cp wallhaven.sh $out/bin/wallhaven
chmod +x $out/bin/wallhaven
2023-05-18 16:11:26 +05:30
wrapProgram $out/bin/wallhaven --prefix PATH : ${lib.makeBinPath [imagemagick libnotify swww jq curl]}
2023-04-06 01:27:09 +05:30
'';
}