{ stdenv , lib , sxhkd , bash , feh , jq , fzy , figlet , curl , xrandr , makeWrapper }: stdenv.mkDerivation rec { pname = "utils"; version = "1.00"; src = ./utils; nativeBuildInputs = [ makeWrapper ]; buildInputs = [ bash feh xrandr jq curl fzy ]; buildPhase = ""; installPhase = '' mkdir -p $out/bin for i in $(ls $src/sh); do cp $src/sh/$i $out/bin 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 ]} done ''; phases = [ "buildPhase" "installPhase" ]; }