From a0a8b878752bc929725cfe127d9e68231c72e836 Mon Sep 17 00:00:00 2001 From: Ryan Gibb Date: Thu, 22 Sep 2022 10:25:56 +0200 Subject: [PATCH] update template --- README.md | 2 +- template/flake.nix | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d2060dd..79bedaf 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ To build a [MirageOS](https://mirage.io) unikernel with [nix](https://nixos.org) $ git clone <...>/.git $ cd $ nix flake new . -t github:/RyanGibb/hillingar -$ sed -i 's/UNIKERNEL-NAME//g' flake.nix +$ sed -i 's/throw "Put the unikernel name here"/""/g' flake.nix $ nix build .# ``` diff --git a/template/flake.nix b/template/flake.nix index 7b28018..3bdeb5b 100644 --- a/template/flake.nix +++ b/template/flake.nix @@ -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;