Skip to content

Commit 9cd1c69

Browse files
committed
nix: add vmrunner and chainloader to includeos passhtrough
This adds vmrunner and chainloader to the IncludeOS overlay to make it easier to import them from the shell and unikernels. Also adds pkgs and pkgsStatic as shortcuts to the pinned nixpkgs + overlay. This allows some packages that don't require full direct access to nixpkgs to avoid importing the overlay (such as shell.nix or example.nix)
1 parent fe73521 commit 9cd1c69

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

overlay.nix

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,17 @@ final: prev: {
159159

160160
cmakeFlags = archFlags ++ smpFlags;
161161

162-
# Add some pasthroughs, for easily building the depdencies (for debugging):
162+
# Add some pasthroughs, for easily building the dependencies (for debugging):
163163
# $ nix-build -A NAME
164+
165+
passthru.vmrunner = prev.callPackage (builtins.fetchGit {
166+
url = "https://github.com/includeos/vmrunner";
167+
}) {};
168+
passthru.chainloader = import ./chainloader.nix { inherit withCcache; };
169+
passthru.lest = self.callPackage ./deps/lest {};
170+
passthru.pkgsStatic = prev.pkgsStatic; # this is for convenience for other packages that depend on includeos
171+
passthru.pkgs = prev.pkgs; # this is for convenience for other packages that depend on includeos
172+
164173
passthru = {
165174
inherit (self) uzlib;
166175
inherit (self) http-parser;

0 commit comments

Comments
 (0)