2
0
Fork 0

nixos: check config.system.build.initXml with xmllint

shells
Emery Hemingway 2020-11-07 18:46:35 +01:00
parent ecf6f909a9
commit 5b98e963c7
1 changed files with 2 additions and 1 deletions

View File

@ -141,7 +141,7 @@ in {
};
system.build.initXml = pkgs.buildPackages.runCommand "init.xml" {
nativeBuildInputs = with pkgs.buildPackages; [ dhall xorg.lndir ];
nativeBuildInputs = with pkgs.buildPackages; [ dhall xorg.lndir libxml2 ];
DHALL_GENODE = "${pkgs.genodePackages.dhallGenode}/binary.dhall";
BOOT_CONFIG = config.genode.boot.configFile;
} ''
@ -150,6 +150,7 @@ in {
${pkgs.genodePackages.dhallGenode}/.cache \
$XDG_CACHE_HOME
dhall text <<< "(env:DHALL_GENODE).Init.render (env:BOOT_CONFIG).config" > $out
xmllint --noout $out
'';
};