forked from fediversity/fediversity
parent
2a7135fd64
commit
82d6059158
2 changed files with 17 additions and 9 deletions
|
|
@ -265,7 +265,11 @@ let
|
||||||
deployment-type = "tf-host";
|
deployment-type = "tf-host";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
tf-env = pkgs.callPackage ./run/tf-single-host/tf-env.nix { inherit httpBackend; };
|
tf-env = pkgs.callPackage ./run/tf-env.nix {
|
||||||
|
inherit httpBackend;
|
||||||
|
tfPackage = pkgs.callPackage ./run/tf-single-host/tf.nix { };
|
||||||
|
tfDirs = [ "deployment/run/tf-single-host" ];
|
||||||
|
};
|
||||||
in
|
in
|
||||||
pkgs.writers.writeBashBin "deploy-tf.sh"
|
pkgs.writers.writeBashBin "deploy-tf.sh"
|
||||||
(withPackages [
|
(withPackages [
|
||||||
|
|
|
||||||
|
|
@ -2,26 +2,30 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
httpBackend,
|
httpBackend,
|
||||||
sources ? import ../../../npins,
|
tfPackage,
|
||||||
|
tfDirs,
|
||||||
|
sources ? import ../../npins,
|
||||||
}:
|
}:
|
||||||
pkgs.stdenv.mkDerivation {
|
pkgs.stdenv.mkDerivation {
|
||||||
name = "tf-repo";
|
name = "tf-repo";
|
||||||
src =
|
src =
|
||||||
with lib.fileset;
|
with lib.fileset;
|
||||||
toSource {
|
toSource {
|
||||||
root = ../../../.;
|
root = ../../.;
|
||||||
# don't copy ignored files
|
# don't copy ignored files
|
||||||
fileset = gitTracked ../../../.;
|
fileset = gitTracked ../../.;
|
||||||
};
|
};
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
(pkgs.callPackage ./tf.nix { inherit sources; })
|
tfPackage
|
||||||
(pkgs.callPackage ../tf-setup.nix { inherit sources httpBackend; })
|
(pkgs.callPackage ./tf-setup.nix { inherit sources httpBackend; })
|
||||||
];
|
];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
pushd deployment/run/tf-single-host
|
for category in ${builtins.toString tfDirs}; do
|
||||||
source setup
|
pushd "$category"
|
||||||
popd
|
source setup
|
||||||
|
popd
|
||||||
|
done
|
||||||
runHook postBuild
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
Loading…
Add table
Reference in a new issue