dot_testing/builds/rebuild.nix
stupidcomputer 15f2580cab add git-rebuild
when you're running on a server and pushing changes, it's nice to have
just one command that does that and nothing else. this is that command.
2024-10-28 23:53:44 -05:00

28 lines
449 B
Nix

{ stdenv
, lib
, bash
, makeWrapper
}:
stdenv.mkDerivation rec {
pname = "rebuild";
version = "1.00";
src = ./rebuild;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ bash ];
buildPhase = "";
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 ]}
'';
phases = [ "buildPhase" "installPhase" ];
}