configuration.nix/packages/scripts/default.nix

55 lines
1.2 KiB
Nix
Raw Normal View History

2023-11-04 16:12:45 +05:30
{ lib
, stdenvNoCC
, makeWrapper
, libnotify
, rofi-wayland
, tmux
, kitty
, imagemagick
, hyprland
, swww
, jq
, curl
, ytfzf
, libsecret
,
2023-05-18 16:11:26 +05:30
}:
2023-04-06 01:27:09 +05:30
stdenvNoCC.mkDerivation {
pname = "scripts";
2023-05-18 20:10:52 +05:30
version = "1.0";
2023-04-06 01:27:09 +05:30
src = ./.;
2023-11-04 16:12:45 +05:30
nativeBuildInputs = [ makeWrapper ];
2023-04-06 01:27:09 +05:30
installPhase = ''
2023-11-09 20:31:28 +05:30
runHook preInstall
2023-04-06 01:27:09 +05:30
mkdir -p $out/bin
2023-07-15 10:52:02 +05:30
2023-04-06 01:27:09 +05:30
cp power-menu.sh $out/bin/power-menu
chmod +x $out/bin/power-menu
2023-04-06 03:08:26 +05:30
cp tmux-sessions.sh $out/bin/tmux-sessions
chmod +x $out/bin/tmux-sessions
2023-04-06 03:29:01 +05:30
cp chpaper.sh $out/bin/chpaper
chmod +x $out/bin/chpaper
2023-05-16 00:19:04 +05:30
cp wallhaven.sh $out/bin/wallhaven
chmod +x $out/bin/wallhaven
2023-07-11 22:12:30 +05:30
cp youtube.sh $out/bin/youtube
chmod +x $out/bin/youtube
2023-07-15 10:52:02 +05:30
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]}
2024-02-04 21:30:33 +05:30
wrapProgram $out/bin/chpaper --prefix PATH : ${lib.makeBinPath [imagemagick swww]}
2023-10-13 22:14:07 +05:30
wrapProgram $out/bin/wallhaven --prefix PATH : ${lib.makeBinPath [libnotify jq curl libsecret]}
2023-07-11 22:12:30 +05:30
wrapProgram $out/bin/youtube --prefix PATH : ${lib.makeBinPath [kitty ytfzf rofi-wayland]}
2023-04-06 01:27:09 +05:30
'';
}