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