{ lib, pkgs, sources ? import ../npins, ... }: pkgs.stdenv.mkDerivation { name = "tf-repo"; src = ../.; buildInputs = [ (import ./tf.nix { inherit lib pkgs; }) ]; buildPhase = '' runHook preBuild pushd launch/ echo '${lib.strings.toJSON sources}' > .npins.json tofu init -input=false popd runHook postBuild ''; installPhase = '' runHook preInstall cp -r . $out runHook postInstall ''; }