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 = ./.;
|
|
|
|
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
|
2023-05-06 23:47:03 +02:00
|
|
|
'';
|
|
|
|
}
|