dot_testing/builds/rebuild.nix

29 lines
485 B
Nix
Raw Permalink Normal View History

2023-11-21 11:09:16 -06:00
{ 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
2024-10-29 00:09:25 -05:00
cp $src/nix-sanitation $out/bin
2023-11-21 11:09:16 -06:00
wrapProgram $out/bin/rebuild --prefix PATH : ${lib.makeBinPath [ bash ]}
'';
phases = [ "buildPhase" "installPhase" ];
}