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:
parent
ffae282eac
commit
e7d7f73f7d
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue