Skip to content

Commit

Permalink
update template
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Gibb committed Sep 22, 2022
1 parent 468cec8 commit a0a8b87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ To build a [MirageOS](https://mirage.io) unikernel with [nix](https://nixos.org)
$ git clone <...>/<unikernel-name>.git
$ cd <unikernel-name>
$ nix flake new . -t github:/RyanGibb/hillingar
$ sed -i 's/UNIKERNEL-NAME/<unikernel-name>/g' flake.nix
$ sed -i 's/throw "Put the unikernel name here"/"<unikernel-name>"/g' flake.nix
$ nix build .#<target>
```

5 changes: 2 additions & 3 deletions template/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@
inherit (mirage-nix) mkUnikernelPackages;
in
mkUnikernelPackages {
# insert unikernel name here
unikernelName = "UNIKERNEL-NAME";
unikernelName = throw "Put the unikernel name here";
# list external dependancies here
depexts = with pkgs; [ ];
# uncomment if mirage files are in another directory
# specify mirage files in a non-root directory
#mirageDir = "mirage";
} self;

Expand Down

0 comments on commit a0a8b87

Please sign in to comment.