aboutsummaryrefslogtreecommitdiff
path: root/modules/pkgs/writeXML.nix
blob: 9ad3826d0855ec852cf8783842103fdc9d3aca8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{ writeTextFile, libxml2 }:

name: text:
  writeTextFile
  {
    inherit name text;
    checkPhase = ''
      ${libxml2.bin}/bin/xmllint \
        --format --noblanks --nocdata "$out" > linted
      mv linted "$out"
    '';
  }