Move into finished executable
This commit is contained in:
30
flake.nix
30
flake.nix
@@ -119,24 +119,24 @@
|
|||||||
newalan = pkgs.runCommand "New Alan Deployscript" {
|
newalan = pkgs.runCommand "New Alan Deployscript" {
|
||||||
nativeBuildInputs = builtins.attrValues checks;
|
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'
|
echo << 'DOC'
|
||||||
#!${pkgs.runtimeShell}
|
#!${pkgs.runtimeShell}
|
||||||
export flake="$tmp/src/deploy"
|
export tmp=$(mktemp -d)
|
||||||
# ${pkgs.runtimeShell} ./secrets/deploy.sh
|
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
|
DOC >> $out
|
||||||
chmod +x $out
|
chmod +x $out
|
||||||
popd
|
|
||||||
rm -rf $tmp
|
|
||||||
echo Listing $tmp
|
|
||||||
ls $tmp
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user