{ stdenv , zsh, socat, nettools, coreutils }: stdenv.mkDerivation rec { pname = "notmuch-tcp"; version = "0.1"; src = ../notmuch-tcp; phases = [ "buildPhase" "installPhase" ]; inherit zsh socat nettools coreutils; buildPhase = '' substituteAll $src notmuch-tcp ''; installPhase = '' install -m 0755 -D -t $out/bin \ notmuch-tcp ''; }