diff --git a/builds/rebuild.nix b/builds/rebuild.nix index e03af19..97c2968 100644 --- a/builds/rebuild.nix +++ b/builds/rebuild.nix @@ -18,6 +18,7 @@ stdenv.mkDerivation rec { installPhase = '' mkdir -p $out/bin cp $src/rebuild $out/bin + cp $src/git-rebuild $out/bin wrapProgram $out/bin/rebuild --prefix PATH : ${lib.makeBinPath [ bash ]} ''; diff --git a/builds/rebuild/git-rebuild b/builds/rebuild/git-rebuild new file mode 100755 index 0000000..cb9da96 --- /dev/null +++ b/builds/rebuild/git-rebuild @@ -0,0 +1,10 @@ +#!/bin/sh + +# make sure we're in dot_testing +cd ~/dot_testing + +git pull +git stash +git rebase + +rebuild