2023-07-07 16:55:42 -05:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2024-05-12 13:23:26 -05:00
|
|
|
, pkgs
|
2024-01-15 03:52:45 -06:00
|
|
|
# shell scripts stuff
|
|
|
|
, makeWrapper
|
2024-01-24 18:49:26 -06:00
|
|
|
, sshuttle
|
2024-02-09 23:41:19 -06:00
|
|
|
, scrcpy
|
2023-11-15 21:04:50 -06:00
|
|
|
, sxhkd
|
2023-07-07 16:55:42 -05:00
|
|
|
, bash
|
|
|
|
, feh
|
|
|
|
, jq
|
2024-01-08 20:32:59 -06:00
|
|
|
, fzy
|
2023-11-22 16:53:33 -06:00
|
|
|
, figlet
|
2023-07-07 16:55:42 -05:00
|
|
|
, curl
|
2024-01-15 03:52:45 -06:00
|
|
|
, ytfzf
|
2023-07-07 16:55:42 -05:00
|
|
|
, xrandr
|
2024-05-12 17:08:24 -05:00
|
|
|
, xrectsel
|
|
|
|
, ffcast
|
2024-02-04 07:48:42 -06:00
|
|
|
, svkbd
|
2024-04-15 01:50:20 -05:00
|
|
|
, xkbset
|
2024-04-15 19:33:35 -05:00
|
|
|
, rbw
|
|
|
|
, xclip
|
2023-07-07 16:55:42 -05:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "utils";
|
2024-01-15 03:52:45 -06:00
|
|
|
version = "1.01";
|
2023-07-07 16:55:42 -05:00
|
|
|
|
|
|
|
src = ./utils;
|
|
|
|
|
2024-05-12 13:23:26 -05:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2024-06-15 20:19:11 -05:00
|
|
|
buildInputs = [ bash feh xrandr jq curl fzy ytfzf sshuttle svkbd scrcpy rbw xclip ffcast xkbset ];
|
2023-07-07 16:55:42 -05:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
|
2024-06-24 02:33:08 -05:00
|
|
|
for i in $(ls $src/); do
|
|
|
|
cp $src/$i $out/bin
|
2024-01-09 08:05:49 -06:00
|
|
|
ln -sf $out/bin/tmenu_run $out/bin/regenerate
|
2024-06-15 20:19:11 -05:00
|
|
|
wrapProgram $out/bin/$i --prefix PATH : ${lib.makeBinPath [ sxhkd bash feh xrandr jq figlet curl fzy xkbset ytfzf sshuttle svkbd scrcpy xrectsel ffcast ]}
|
2023-07-07 16:55:42 -05:00
|
|
|
done
|
2024-01-15 03:52:45 -06:00
|
|
|
'';
|
2023-07-07 16:55:42 -05:00
|
|
|
}
|