Move into finished executable

This commit is contained in:
2023-03-09 23:01:12 -05:00
parent d57bbc5e94
commit e76c187905

View File

@@ -119,24 +119,24 @@
newalan = pkgs.runCommand "New Alan Deployscript" {
nativeBuildInputs = builtins.attrValues checks;
} ''
export tmp=$(mktemp -d)
pushd $tmp
${pkgs.wget}/bin/wget \
https://git.syzygial.cc/Syzygial/New-Alan/archive/${self.rev}.bundle
git clone * src
${pkgs.tree}/bin/tree
cd src
sops -i -d secrets/config.nix
echo << 'DOC'
#!${pkgs.runtimeShell}
export flake="$tmp/src/deploy"
# ${pkgs.runtimeShell} ./secrets/deploy.sh
#!${pkgs.runtimeShell}
export tmp=$(mktemp -d)
pushd $tmp
${pkgs.wget}/bin/wget \
https://git.syzygial.cc/Syzygial/New-Alan/archive/${self.rev}.bundle
git clone * src
${pkgs.tree}/bin/tree
cd src
sops -i -d secrets/config.nix
export flake="$tmp/src/deploy"
# ${pkgs.runtimeShell} ./secrets/deploy.sh
popd
rm -rf $tmp
echo Listing $tmp
ls $tmp
DOC >> $out
chmod +x $out
popd
rm -rf $tmp
echo Listing $tmp
ls $tmp
'';
};
};