Fediversity/deployment/run/tf-single-host/tf-env.nix
Kiara Grouwstra 84ff121969
propagate http backend config
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
2025-10-06 13:49:08 +02:00

32 lines
639 B
Nix

{
lib,
pkgs,
httpBackend,
sources ? import ../../../npins,
}:
pkgs.stdenv.mkDerivation {
name = "tf-repo";
src =
with lib.fileset;
toSource {
root = ../../../.;
# don't copy ignored files
fileset = gitTracked ../../../.;
};
buildInputs = [
(pkgs.callPackage ./tf.nix { inherit sources; })
(pkgs.callPackage ../tf-setup.nix { inherit sources httpBackend; })
];
buildPhase = ''
runHook preBuild
pushd deployment/run/tf-single-host
source setup
popd
runHook postBuild
'';
installPhase = ''
runHook preInstall
cp -r . $out
runHook postInstall
'';
}