forked from fediversity/fediversity
factor out TF setup
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
parent
b89c7cbd3d
commit
03e564f3d8
2 changed files with 1 additions and 17 deletions
|
|
@ -1,16 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
sources,
|
|
||||||
}:
|
|
||||||
pkgs.writeScriptBin "setup" ''
|
|
||||||
set -xe
|
|
||||||
# calculated pins
|
|
||||||
echo '${lib.strings.toJSON sources}' > ./.npins.json
|
|
||||||
# generate TF lock for nix's TF providers
|
|
||||||
rm -rf .terraform/
|
|
||||||
rm -f .terraform.lock.hcl
|
|
||||||
# suppress warning on architecture-specific generated lock file:
|
|
||||||
# `Warning: Incomplete lock file information for providers`.
|
|
||||||
tofu init -input=false 1>/dev/null
|
|
||||||
''
|
|
||||||
|
|
@ -14,7 +14,7 @@ pkgs.stdenv.mkDerivation {
|
||||||
};
|
};
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
(pkgs.callPackage ./tf.nix { inherit sources; })
|
(pkgs.callPackage ./tf.nix { inherit sources; })
|
||||||
(pkgs.callPackage ./setup.nix { inherit sources; })
|
(pkgs.callPackage ../tf-setup.nix { inherit sources; })
|
||||||
];
|
];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue