2023-07-07 16:55:42 -05:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
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
|
|
|
|
, xrandr
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "utils";
|
|
|
|
version = "1.00";
|
|
|
|
|
|
|
|
src = ./utils;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2024-01-08 20:32:59 -06:00
|
|
|
buildInputs = [ bash feh xrandr jq curl fzy ];
|
2023-07-07 16:55:42 -05:00
|
|
|
|
|
|
|
buildPhase = "";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
|
|
|
|
for i in $(ls $src/sh); do
|
|
|
|
cp $src/sh/$i $out/bin
|
2024-01-09 08:05:49 -06:00
|
|
|
ln -sf $out/bin/tmenu_run $out/bin/regenerate
|
|
|
|
wrapProgram $out/bin/$i --prefix PATH : ${lib.makeBinPath [ sxhkd bash feh xrandr jq figlet curl fzy ]}
|
2023-07-07 16:55:42 -05:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
phases = [ "buildPhase" "installPhase" ];
|
|
|
|
}
|
|
|
|
|