liminix/pkgs/min-copy-closure/default.nix

21 lines
395 B
Nix
Raw Normal View History

{
stdenv
, nix
, cpio
2023-05-07 23:51:10 +02:00
, openssh
}: stdenv.mkDerivation {
name = "min-copy-closure";
2023-05-07 23:51:10 +02:00
buildInputs = [ ];
propagatedBuildInputs = [ cpio openssh nix ];
src = ./.;
makeFlags = [ "min-list-garbage" ];
installPhase = ''
mkdir -p $out/bin
for i in min-copy-closure liminix-rebuild; do
echo $i
cp ''${i}.sh $out/bin/$i
done
cp min-list-garbage $out/bin
'';
}