feat(build): Add 'extraPackages' parameter

This makes it possible to inject additional programs (e.g. Cachix)
into a Nixery container.
This commit is contained in:
Vincent Ambo 2019-08-19 01:10:21 +01:00 committed by Vincent Ambo
parent ffae282eac
commit e7d7f73f7d

View file

@ -11,7 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
{ pkgs ? import <nixpkgs> { }, preLaunch ? "" }:
{ pkgs ? import <nixpkgs> { }
, preLaunch ? ""
, extraPackages ? [] }:
with pkgs;
@ -93,6 +95,6 @@ rec {
nixery-launch-script
openssh
zlib
];
] ++ extraPackages;
};
}