feat: use overlay to specify mkSGXContainer

will simplify `pkgs.callPackage lib.nixsgx.mkSGXContainer`
to `nixsgxLib.mkSGXContainer`.

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
Harald Hoyer 2024-07-01 15:41:02 +02:00
parent 347a89b6da
commit 2d39aee8b4
Signed by: harald
GPG key ID: F519A1143B3FBE32
4 changed files with 250 additions and 246 deletions

View file

@ -1,15 +1,13 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2024 Matter Labs
{ lib
, pkgs
, inputs
, nixsgx
, nixsgxLib
, hello
, isAzure ? false
, container-name ? "nixsgx-test-sgx-dcap"
, tag ? "latest"
}:
pkgs.callPackage lib.nixsgx.mkSGXContainer {
nixsgxLib.mkSGXContainer {
name = container-name;
inherit tag isAzure;