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