2
0
genodepkgs/apps/linux-image/default.nix
Emery Hemingway 9fc90076d6 Replace apps.linux-boot with apps.linux-image
Replace a script that builds a Linux boot image into the current workings
directory and boots it with a script that only builds the image.
2020-01-24 14:46:51 +01:00

16 lines
602 B
Nix

# SPDX-License-Identifier: CC0-1.0
{ nixpkgs, dhallApps, packages }:
nixpkgs.writeScriptBin "linux-image" (with nixpkgs.buildPackages; ''
#!${runtimeShell}
set -eu
export DHALL_PRELUDE=''${DHALL_PRELUDE:-${packages.dhallPrelude}/package.dhall}
export DHALL_GENODE=''${DHALL_GENODE:-${packages.dhallGenode}/package.dhall}
export BASE_LINUX_MANIFEST=''${BASE_LINUX_MANIFEST:-${packages.genode.base-linux.manifest}}
export OS_MANIFEST=''${OS_MANIFEST:-${packages.genode.os.manifest}}
${dhallApps.dhall.program} text <<< "${./script.dhall} ($@)" > boot.sh
source boot.sh
rm boot.sh
'')