diff --git a/buildbot_nix/__init__.py b/buildbot_nix/__init__.py index 253c16e..06474f5 100644 --- a/buildbot_nix/__init__.py +++ b/buildbot_nix/__init__.py @@ -622,6 +622,20 @@ def nix_build_config( ) -> util.BuilderConfig: """Builds one nix flake attribute.""" factory = util.BuildFactory() + factory.addStep( + steps.ShellCommand( + name="Copy the derivation to the local worker store", + command=[ + "nix", + "copy", + "--to", + "../store", + "--no-check-sigs", + util.Interpolate("%(prop:drv_path)s^*") + ] + ) + ) + factory.addStep( NixBuildCommand( env={},