---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "lib",
    default: None,
   },
   DestructuredArgument {
    identifier: "pkgs",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (4, 6),
  },
  target: LetIn {
   bindings: [
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "cfg",
        position: (8, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (8, 9),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "services",
         position: (8, 16),
        },
        Raw {
         content: "svnserve",
         position: (8, 25),
        },
       ],
      },
      default: None,
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "options",
         position: (16, 3),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "services",
            position: (18, 5),
           },
           Raw {
            content: "svnserve",
            position: (18, 14),
           },
          ],
         },
         to: Map {
          bindings: [
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "enable",
               position: (20, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (20, 16),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (21, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (21, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "bool",
                     position: (21, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (22, 9),
                   },
                  ],
                 },
                 to: Variable {
                  identifier: "false",
                  position: (22, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (23, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Whether to enable svnserve to serve Subversion repositories through the SVN protocol.",
                    position: (23, 24),
                   },
                  ],
                  position: (23, 23),
                 },
                },
               ],
               recursive: false,
               position: (20, 25),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "svnBaseDir",
               position: (26, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (26, 20),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (27, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (27, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "str",
                     position: (27, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (28, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "/repos",
                    position: (28, 20),
                   },
                  ],
                  position: (28, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (29, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Base directory from which Subversion repositories are accessed.",
                    position: (29, 24),
                   },
                  ],
                  position: (29, 23),
                 },
                },
               ],
               recursive: false,
               position: (26, 29),
              },
             ],
            },
           },
          ],
          recursive: false,
          position: (18, 25),
         },
        },
       ],
       recursive: false,
       position: (16, 13),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (38, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (38, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (38, 17),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "enable",
            position: (38, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "systemd",
              position: (39, 5),
             },
             Raw {
              content: "services",
              position: (39, 13),
             },
             Raw {
              content: "svnserve",
              position: (39, 22),
             },
            ],
           },
           to: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "after",
                 position: (40, 7),
                },
               ],
              },
              to: List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "network.target",
                   position: (40, 18),
                  },
                 ],
                 position: (40, 17),
                },
               ],
               position: (40, 15),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "wantedBy",
                 position: (41, 7),
                },
               ],
              },
              to: List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                   position: (41, 21),
                  },
                 ],
                 position: (41, 20),
                },
               ],
               position: (41, 18),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "preStart",
                 position: (42, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "mkdir -p ",
                 position: (42, 19),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (42, 30),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "svnBaseDir",
                     position: (42, 34),
                    },
                   ],
                  },
                  default: None,
                 },
                },
               ],
               position: (42, 18),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "script",
                 position: (43, 7),
                },
               ],
              },
              to: String {
               parts: [
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (43, 19),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "subversion",
                     position: (43, 24),
                    },
                    Raw {
                     content: "out",
                     position: (43, 35),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "/bin/svnserve -r ",
                 position: (43, 39),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (43, 58),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "svnBaseDir",
                     position: (43, 62),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: " -d --foreground --pid-file=/run/svnserve.pid",
                 position: (43, 73),
                },
               ],
               position: (43, 16),
              },
             },
            ],
            recursive: false,
            position: (39, 33),
           },
          },
         ],
         recursive: false,
         position: (38, 28),
        },
       ],
      },
     },
    ],
    recursive: false,
    position: (12, 1),
   },
   position: (6, 1),
  },
  position: (4, 1),
 },
 position: (2, 1),
}