{ stdenv , zsh, gnutar }: stdenv.mkDerivation rec { name = "recv-${version}"; version = "0.1"; src = ../recv; phases = [ "buildPhase" "installPhase" ]; inherit zsh gnutar; buildPhase = '' substituteAll $src recv ''; installPhase = '' mkdir -p $out/bin install -m 755 -t $out/bin \ recv ''; }