{ stdenv , fetchgit , makeWrapper , sudo , git }: stdenv.mkDerivation rec { inherit sudo git; name = "rebuild-system-${version}"; version = "0.1"; src = fetchgit { inherit name; url = git://git.yggdrasil.li/utils; rev = ""; sha256 = ""; }; buildInputs = [ makeWrapper ]; buildPhase = "true"; installPhase = '' mkdir -p $out/bin cp $src/rebuild-system $out/bin/ chmod +x $out/bin/rebuild-system wrapProgram $out/bin/rebuild-system \ --prefix PATH : ${sudo}/bin \ --prefix PATH : ${git}/bin ''; }