Move into finished executable

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

View File

@@ -119,6 +119,8 @@
newalan = pkgs.runCommand "New Alan Deployscript" { newalan = pkgs.runCommand "New Alan Deployscript" {
nativeBuildInputs = builtins.attrValues checks; nativeBuildInputs = builtins.attrValues checks;
} '' } ''
echo << 'DOC'
#!${pkgs.runtimeShell}
export tmp=$(mktemp -d) export tmp=$(mktemp -d)
pushd $tmp pushd $tmp
${pkgs.wget}/bin/wget \ ${pkgs.wget}/bin/wget \
@@ -127,16 +129,14 @@
${pkgs.tree}/bin/tree ${pkgs.tree}/bin/tree
cd src cd src
sops -i -d secrets/config.nix sops -i -d secrets/config.nix
echo << 'DOC'
#!${pkgs.runtimeShell}
export flake="$tmp/src/deploy" export flake="$tmp/src/deploy"
# ${pkgs.runtimeShell} ./secrets/deploy.sh # ${pkgs.runtimeShell} ./secrets/deploy.sh
DOC >> $out
chmod +x $out
popd popd
rm -rf $tmp rm -rf $tmp
echo Listing $tmp echo Listing $tmp
ls $tmp ls $tmp
DOC >> $out
chmod +x $out
''; '';
}; };
}; };