forked from Fediversity/Fediversity
note that, other than being easier to call, this maintains the TF deployment's status of remaining a glorified wrapper of the SSH deployment.
31 lines
617 B
Nix
31 lines
617 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
sources ? import ../../../npins,
|
|
}:
|
|
pkgs.stdenv.mkDerivation {
|
|
name = "tf-repo";
|
|
src =
|
|
with lib.fileset;
|
|
toSource {
|
|
root = ../../../.;
|
|
# don't copy ignored files
|
|
fileset = intersection (gitTracked ../../../.) ../../../.;
|
|
};
|
|
buildInputs = [
|
|
(pkgs.callPackage ./tf.nix { })
|
|
(pkgs.callPackage ./setup.nix { inherit sources; })
|
|
];
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
pushd deployment/run/tf-single-host
|
|
source setup
|
|
popd
|
|
runHook postBuild
|
|
'';
|
|
installPhase = ''
|
|
runHook preInstall
|
|
cp -r . $out
|
|
runHook postInstall
|
|
'';
|
|
}
|