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