chore(build-image): Simplify wrapper build & remove layer grouping

Simplifies the wrapper script used to invoke Nix builds from Nixery to
just contain the essentials, since the layer grouping logic is moving
into the server itself.
This commit is contained in:
Vincent Ambo 2019-09-29 22:58:52 +01:00 committed by Vincent Ambo
parent 712b38cbbc
commit 0898d8a961
5 changed files with 19 additions and 450 deletions

View file

@ -26,6 +26,8 @@
srcType ? "nixpkgs",
srcArgs ? "nixos-19.03",
importArgs ? { },
# Path to load-pkgs.nix
loadPkgs ? ./load-pkgs.nix,
# Packages to install by name (which must refer to top-level attributes of
# nixpkgs). This is passed in as a JSON-array in string form.
packages ? "[]"
@ -43,7 +45,7 @@ let
inherit (pkgs) lib runCommand writeText;
pkgs = import ./load-pkgs.nix { inherit srcType srcArgs importArgs; };
pkgs = import loadPkgs { inherit srcType srcArgs importArgs; };
# deepFetch traverses the top-level Nix package set to retrieve an item via a
# path specified in string form.