forked from Fediversity/Fediversity
33 lines
711 B
Nix
33 lines
711 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 { inherit sources; })
|
|
(pkgs.callPackage ./setup.nix { inherit sources; })
|
|
];
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
for category in deployment/run/tf-single-host deployment/run/tf-proxmox; do
|
|
pushd "$category"
|
|
source setup
|
|
popd
|
|
done
|
|
runHook postBuild
|
|
'';
|
|
installPhase = ''
|
|
runHook preInstall
|
|
cp -r . $out
|
|
runHook postInstall
|
|
'';
|
|
}
|