Browse Source

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

shells
Emery Hemingway 1 year ago
parent
commit
5b98e963c7
  1. 3
      nixos-modules/genode-core.nix

3
nixos-modules/genode-core.nix

@ -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
'';
};

Loading…
Cancel
Save