File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{ withCcache ? false ,
22
3- nixpkgs ? ./pinned.nix ,
3+ doCheck ? true , # boot unikernel after building it
44 includeos ? import ./default.nix { inherit withCcache ; } ,
5- pkgs ? ( import nixpkgs { } ) . pkgsStatic ,
6- llvmPkgs ? pkgs . llvmPackages_18
75} :
86
97includeos . stdenv . mkDerivation rec {
108 pname = "includeos_example" ;
11- src = pkgs . lib . cleanSource ./example ;
12- doCheck = false ;
9+ src = includeos . pkgs . lib . cleanSource ./example ;
1310 dontStrip = true ;
11+ inherit doCheck ;
1412
1513 nativeBuildInputs = [
16- pkgs . buildPackages . nasm
17- pkgs . buildPackages . cmake
14+ includeos . pkgs . buildPackages . nasm
15+ includeos . pkgs . buildPackages . cmake
1816 ] ;
1917
2018 buildInputs = [
2119 includeos
20+ includeos . chainloader
2221 ] ;
2322
23+ nativeCheckInputs = [
24+ includeos . vmrunner
25+ includeos . pkgs . qemu
26+ ] ;
27+
28+ checkPhase = ''
29+ boot *.elf.bin
30+ '' ;
31+
2432 version = "dev" ;
2533}
You can’t perform that action at this time.
0 commit comments