Skip to content

Commit

Permalink
phoebus-scan-server: add validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Synthetica9 committed May 3, 2024
1 parent e7996a0 commit 7f3935a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nixos/modules/phoebus/scan-server.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
</scan_config>
'';

schema = "${pkgs.epnix.phoebus-scan-server.src}/services/scan-server/src/main/resources/config/scan_config.xsd";
configFile = pkgs.runCommand "scan_config.xml" {nativeBuildInputs = [pkgs.libxml2];} ''
xmllint --format ${rawConfigFile} > $out
xmllint --schema ${schema} --format ${rawConfigFile} > $out
'';
in {
options.services.phoebus-scan-server = {
Expand Down

0 comments on commit 7f3935a

Please sign in to comment.