add min-copy-closure, a minimal nix-copy-closure substitute

This commit is contained in:
Daniel Barlow
2023-05-06 22:47:03 +01:00
parent 67768004ee
commit 30153a2d4e
5 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
{
stdenv
, nix
, cpio
}: stdenv.mkDerivation {
name = "min-copy-closure";
buildInputs = [ nix cpio ];
src = ./.;
installPhase = ''
mkdir -p $out/bin
cp min-copy-closure.sh $out/bin/nix-copy-closure
'';
}