{ stdenv, zsh, ffmpeg-full, youtube-dl, pv, notmuch }: stdenv.mkDerivation { name = "strm"; src = ./strm; phases = [ "unpackPhase" "buildPhase" "installPhase" ]; inherit zsh ffmpeg-full youtube-dl pv notmuch; buildPhase = '' substituteAllInPlace download_youtube substituteAllInPlace cleanup_youtube substituteAllInPlace send_media substituteAllInPlace send_kitty ''; installPhase = '' mkdir -p $out/bin install -m 755 -t $out/bin download_youtube cleanup_youtube send_media send_kitty ''; }