---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "lib",
    default: None,
   },
  ],
  ellipsis: false,
 },
 definition: Map {
  bindings: [
   Binding {
    from: AttributePath {
     parts: [
      Raw {
       content: "addMetaAttrs",
       position: (15, 3),
      },
     ],
    },
    to: Function {
     argument: Simple {
      identifier: "newAttrs",
     },
     definition: Function {
      argument: Simple {
       identifier: "drv",
      },
      definition: BinaryOperation {
       operator: Update,
       operands: [
        Variable {
         identifier: "drv",
         position: (16, 5),
        },
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "meta",
              position: (16, 14),
             },
            ],
           },
           to: BinaryOperation {
            operator: Update,
            operands: [
             Parentheses {
              expression: PropertyAccess {
               expression: Variable {
                identifier: "drv",
                position: (16, 22),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "meta",
                  position: (16, 26),
                 },
                ],
               },
               default: Some(
                Map {
                 bindings: [],
                 recursive: false,
                 position: (16, 34),
                },
               ),
              },
              position: (16, 21),
             },
             Variable {
              identifier: "newAttrs",
              position: (16, 41),
             },
            ],
            position: (16, 38),
           },
          },
         ],
         recursive: false,
         position: (16, 12),
        },
       ],
       position: (16, 9),
      },
      position: (15, 28),
     },
     position: (15, 18),
    },
   },
   Binding {
    from: AttributePath {
     parts: [
      Raw {
       content: "dontDistribute",
       position: (21, 3),
      },
     ],
    },
    to: Function {
     argument: Simple {
      identifier: "drv",
     },
     definition: FunctionApplication {
      function: Variable {
       identifier: "addMetaAttrs",
       position: (21, 25),
      },
      arguments: [
       Map {
        bindings: [
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "hydraPlatforms",
             position: (21, 40),
            },
           ],
          },
          to: List {
           elements: [],
           position: (21, 57),
          },
         },
        ],
        recursive: false,
        position: (21, 38),
       },
       Variable {
        identifier: "drv",
        position: (21, 63),
       },
      ],
     },
     position: (21, 20),
    },
   },
   Binding {
    from: AttributePath {
     parts: [
      Raw {
       content: "setName",
       position: (27, 3),
      },
     ],
    },
    to: Function {
     argument: Simple {
      identifier: "name",
     },
     definition: Function {
      argument: Simple {
       identifier: "drv",
      },
      definition: BinaryOperation {
       operator: Update,
       operands: [
        Variable {
         identifier: "drv",
         position: (27, 24),
        },
        Map {
         bindings: [
          Inherit {
           from: None,
           attributes: [
            Raw {
             content: "name",
             position: (27, 40),
            },
           ],
          },
         ],
         recursive: false,
         position: (27, 31),
        },
       ],
       position: (27, 28),
      },
      position: (27, 19),
     },
     position: (27, 13),
    },
   },
   Binding {
    from: AttributePath {
     parts: [
      Raw {
       content: "updateName",
       position: (35, 3),
      },
     ],
    },
    to: Function {
     argument: Simple {
      identifier: "updater",
     },
     definition: Function {
      argument: Simple {
       identifier: "drv",
      },
      definition: BinaryOperation {
       operator: Update,
       operands: [
        Variable {
         identifier: "drv",
         position: (35, 30),
        },
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "name",
              position: (35, 38),
             },
            ],
           },
           to: FunctionApplication {
            function: Variable {
             identifier: "updater",
             position: (35, 45),
            },
            arguments: [
             Parentheses {
              expression: PropertyAccess {
               expression: Variable {
                identifier: "drv",
                position: (35, 54),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "name",
                  position: (35, 58),
                 },
                ],
               },
               default: None,
              },
              position: (35, 53),
             },
            ],
           },
          },
         ],
         recursive: false,
         position: (35, 37),
        },
       ],
       position: (35, 34),
      },
      position: (35, 25),
     },
     position: (35, 16),
    },
   },
   Binding {
    from: AttributePath {
     parts: [
      Raw {
       content: "appendToName",
       position: (40, 3),
      },
     ],
    },
    to: Function {
     argument: Simple {
      identifier: "suffix",
     },
     definition: FunctionApplication {
      function: Variable {
       identifier: "updateName",
       position: (40, 26),
      },
      arguments: [
       Parentheses {
        expression: Function {
         argument: Simple {
          identifier: "name",
         },
         definition: LetIn {
          bindings: [
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "x",
               position: (41, 9),
              },
             ],
            },
            to: FunctionApplication {
             function: PropertyAccess {
              expression: Variable {
               identifier: "builtins",
               position: (41, 13),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "parseDrvName",
                 position: (41, 22),
                },
               ],
              },
              default: None,
             },
             arguments: [
              Variable {
               identifier: "name",
               position: (41, 35),
              },
             ],
            },
           },
          ],
          target: String {
           parts: [
            Expression {
             expression: PropertyAccess {
              expression: Variable {
               identifier: "x",
               position: (41, 47),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "name",
                 position: (41, 49),
                },
               ],
              },
              default: None,
             },
            },
            Raw {
             content: "-",
             position: (41, 54),
            },
            Expression {
             expression: Variable {
              identifier: "suffix",
              position: (41, 57),
             },
            },
            Raw {
             content: "-",
             position: (41, 64),
            },
            Expression {
             expression: PropertyAccess {
              expression: Variable {
               identifier: "x",
               position: (41, 67),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "version",
                 position: (41, 69),
                },
               ],
              },
              default: None,
             },
            },
           ],
           position: (41, 44),
          },
          position: (41, 5),
         },
         position: (40, 38),
        },
        position: (40, 37),
       },
      ],
     },
     position: (40, 18),
    },
   },
   Binding {
    from: AttributePath {
     parts: [
      Raw {
       content: "mapDerivationAttrset",
       position: (46, 3),
      },
     ],
    },
    to: Function {
     argument: Simple {
      identifier: "f",
     },
     definition: Function {
      argument: Simple {
       identifier: "set",
      },
      definition: FunctionApplication {
       function: PropertyAccess {
        expression: Variable {
         identifier: "lib",
         position: (46, 34),
        },
        attribute_path: AttributePath {
         parts: [
          Raw {
           content: "mapAttrs",
           position: (46, 38),
          },
         ],
        },
        default: None,
       },
       arguments: [
        Parentheses {
         expression: Function {
          argument: Simple {
           identifier: "name",
          },
          definition: Function {
           argument: Simple {
            identifier: "pkg",
           },
           definition: IfThenElse {
            predicate: FunctionApplication {
             function: PropertyAccess {
              expression: Variable {
               identifier: "lib",
               position: (46, 62),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "isDerivation",
                 position: (46, 66),
                },
               ],
              },
              default: None,
             },
             arguments: [
              Variable {
               identifier: "pkg",
               position: (46, 79),
              },
             ],
            },
            then: Parentheses {
             expression: FunctionApplication {
              function: Variable {
               identifier: "f",
               position: (46, 89),
              },
              arguments: [
               Variable {
                identifier: "pkg",
                position: (46, 91),
               },
              ],
             },
             position: (46, 88),
            },
            else_: Variable {
             identifier: "pkg",
             position: (46, 101),
            },
            position: (46, 59),
           },
           position: (46, 54),
          },
          position: (46, 48),
         },
         position: (46, 47),
        },
        Variable {
         identifier: "set",
         position: (46, 106),
        },
       ],
      },
      position: (46, 29),
     },
     position: (46, 26),
    },
   },
   Binding {
    from: AttributePath {
     parts: [
      Raw {
       content: "setPrio",
       position: (50, 3),
      },
     ],
    },
    to: Function {
     argument: Simple {
      identifier: "priority",
     },
     definition: FunctionApplication {
      function: Variable {
       identifier: "addMetaAttrs",
       position: (50, 23),
      },
      arguments: [
       Map {
        bindings: [
         Inherit {
          from: None,
          attributes: [
           Raw {
            content: "priority",
            position: (50, 46),
           },
          ],
         },
        ],
        recursive: false,
        position: (50, 36),
       },
      ],
     },
     position: (50, 13),
    },
   },
   Binding {
    from: AttributePath {
     parts: [
      Raw {
       content: "lowPrio",
       position: (55, 3),
      },
     ],
    },
    to: FunctionApplication {
     function: Variable {
      identifier: "setPrio",
      position: (55, 13),
     },
     arguments: [
      Int {
       value: 10,
       position: (55, 21),
      },
     ],
    },
   },
   Binding {
    from: AttributePath {
     parts: [
      Raw {
       content: "lowPrioSet",
       position: (59, 3),
      },
     ],
    },
    to: Function {
     argument: Simple {
      identifier: "set",
     },
     definition: FunctionApplication {
      function: Variable {
       identifier: "mapDerivationAttrset",
       position: (59, 21),
      },
      arguments: [
       Variable {
        identifier: "lowPrio",
        position: (59, 42),
       },
       Variable {
        identifier: "set",
        position: (59, 50),
       },
      ],
     },
     position: (59, 16),
    },
   },
   Binding {
    from: AttributePath {
     parts: [
      Raw {
       content: "hiPrio",
       position: (65, 3),
      },
     ],
    },
    to: FunctionApplication {
     function: Variable {
      identifier: "setPrio",
      position: (65, 12),
     },
     arguments: [
      Parentheses {
       expression: UnaryOperation {
        operator: Negate,
        operand: Int {
         value: 10,
         position: (65, 22),
        },
        position: (65, 21),
       },
       position: (65, 20),
      },
     ],
    },
   },
   Binding {
    from: AttributePath {
     parts: [
      Raw {
       content: "hiPrioSet",
       position: (69, 3),
      },
     ],
    },
    to: Function {
     argument: Simple {
      identifier: "set",
     },
     definition: FunctionApplication {
      function: Variable {
       identifier: "mapDerivationAttrset",
       position: (69, 20),
      },
      arguments: [
       Variable {
        identifier: "hiPrio",
        position: (69, 41),
       },
       Variable {
        identifier: "set",
        position: (69, 48),
       },
      ],
     },
     position: (69, 15),
    },
   },
   Binding {
    from: AttributePath {
     parts: [
      Raw {
       content: "platformMatch",
       position: (84, 3),
      },
     ],
    },
    to: Function {
     argument: Simple {
      identifier: "platform",
     },
     definition: Function {
      argument: Simple {
       identifier: "elem",
      },
      definition: LetIn {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "pattern",
            position: (85, 7),
           },
          ],
         },
         to: IfThenElse {
          predicate: FunctionApplication {
           function: PropertyAccess {
            expression: Variable {
             identifier: "builtins",
             position: (86, 12),
            },
            attribute_path: AttributePath {
             parts: [
              Raw {
               content: "isString",
               position: (86, 21),
              },
             ],
            },
            default: None,
           },
           arguments: [
            Variable {
             identifier: "elem",
             position: (86, 30),
            },
           ],
          },
          then: Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "system",
                position: (87, 16),
               },
              ],
             },
             to: Variable {
              identifier: "elem",
              position: (87, 25),
             },
            },
           ],
           recursive: false,
           position: (87, 14),
          },
          else_: Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "parsed",
                position: (88, 16),
               },
              ],
             },
             to: Variable {
              identifier: "elem",
              position: (88, 25),
             },
            },
           ],
           recursive: false,
           position: (88, 14),
          },
          position: (86, 9),
         },
        },
       ],
       target: FunctionApplication {
        function: PropertyAccess {
         expression: Variable {
          identifier: "lib",
          position: (89, 8),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "matchAttrs",
            position: (89, 12),
           },
          ],
         },
         default: None,
        },
        arguments: [
         Variable {
          identifier: "pattern",
          position: (89, 23),
         },
         Variable {
          identifier: "platform",
          position: (89, 31),
         },
        ],
       },
       position: (84, 35),
      },
      position: (84, 29),
     },
     position: (84, 19),
    },
   },
   Binding {
    from: AttributePath {
     parts: [
      Raw {
       content: "availableOn",
       position: (99, 3),
      },
     ],
    },
    to: Function {
     argument: Simple {
      identifier: "platform",
     },
     definition: Function {
      argument: Simple {
       identifier: "pkg",
      },
      definition: BinaryOperation {
       operator: LogicalAnd,
       operands: [
        FunctionApplication {
         function: PropertyAccess {
          expression: Variable {
           identifier: "lib",
           position: (100, 5),
          },
          attribute_path: AttributePath {
           parts: [
            Raw {
             content: "any",
             position: (100, 9),
            },
           ],
          },
          default: None,
         },
         arguments: [
          Parentheses {
           expression: FunctionApplication {
            function: Variable {
             identifier: "platformMatch",
             position: (100, 14),
            },
            arguments: [
             Variable {
              identifier: "platform",
              position: (100, 28),
             },
            ],
           },
           position: (100, 13),
          },
          PropertyAccess {
           expression: Variable {
            identifier: "pkg",
            position: (100, 38),
           },
           attribute_path: AttributePath {
            parts: [
             Raw {
              content: "meta",
              position: (100, 42),
             },
             Raw {
              content: "platforms",
              position: (100, 47),
             },
            ],
           },
           default: None,
          },
         ],
        },
        FunctionApplication {
         function: PropertyAccess {
          expression: Variable {
           identifier: "lib",
           position: (101, 5),
          },
          attribute_path: AttributePath {
           parts: [
            Raw {
             content: "all",
             position: (101, 9),
            },
           ],
          },
          default: None,
         },
         arguments: [
          Parentheses {
           expression: Function {
            argument: Simple {
             identifier: "elem",
            },
            definition: UnaryOperation {
             operator: Not,
             operand: FunctionApplication {
              function: Variable {
               identifier: "platformMatch",
               position: (101, 21),
              },
              arguments: [
               Variable {
                identifier: "platform",
                position: (101, 35),
               },
               Variable {
                identifier: "elem",
                position: (101, 44),
               },
              ],
             },
             position: (101, 20),
            },
            position: (101, 14),
           },
           position: (101, 13),
          },
          Parentheses {
           expression: PropertyAccess {
            expression: Variable {
             identifier: "pkg",
             position: (101, 51),
            },
            attribute_path: AttributePath {
             parts: [
              Raw {
               content: "meta",
               position: (101, 55),
              },
              Raw {
               content: "badPlatforms",
               position: (101, 60),
              },
             ],
            },
            default: Some(
             List {
              elements: [],
              position: (101, 76),
             },
            ),
           },
           position: (101, 50),
          },
         ],
        },
       ],
       position: (100, 57),
      },
      position: (99, 27),
     },
     position: (99, 17),
    },
   },
   Binding {
    from: AttributePath {
     parts: [
      Raw {
       content: "getLicenseFromSpdxId",
       position: (120, 3),
      },
     ],
    },
    to: LetIn {
     bindings: [
      Binding {
       from: AttributePath {
        parts: [
         Raw {
          content: "spdxLicenses",
          position: (122, 7),
         },
        ],
       },
       to: FunctionApplication {
        function: PropertyAccess {
         expression: Variable {
          identifier: "lib",
          position: (122, 22),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "mapAttrs",
            position: (122, 26),
           },
          ],
         },
         default: None,
        },
        arguments: [
         Parentheses {
          expression: Function {
           argument: Simple {
            identifier: "id",
           },
           definition: Function {
            argument: Simple {
             identifier: "ls",
            },
            definition: Assert {
             expression: BinaryOperation {
              operator: EqualTo,
              operands: [
               FunctionApplication {
                function: PropertyAccess {
                 expression: Variable {
                  identifier: "lib",
                  position: (122, 51),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "length",
                    position: (122, 55),
                   },
                  ],
                 },
                 default: None,
                },
                arguments: [
                 Variable {
                  identifier: "ls",
                  position: (122, 62),
                 },
                ],
               },
               Int {
                value: 1,
                position: (122, 68),
               },
              ],
              position: (122, 65),
             },
             target: FunctionApplication {
              function: PropertyAccess {
               expression: Variable {
                identifier: "builtins",
                position: (122, 71),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "head",
                  position: (122, 80),
                 },
                ],
               },
               default: None,
              },
              arguments: [
               Variable {
                identifier: "ls",
                position: (122, 85),
               },
              ],
             },
             position: (122, 44),
            },
            position: (122, 40),
           },
           position: (122, 36),
          },
          position: (122, 35),
         },
         Parentheses {
          expression: FunctionApplication {
           function: PropertyAccess {
            expression: Variable {
             identifier: "lib",
             position: (123, 10),
            },
            attribute_path: AttributePath {
             parts: [
              Raw {
               content: "groupBy",
               position: (123, 14),
              },
             ],
            },
            default: None,
           },
           arguments: [
            Parentheses {
             expression: Function {
              argument: Simple {
               identifier: "l",
              },
              definition: FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "lib",
                 position: (123, 26),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "toLower",
                   position: (123, 30),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "l",
                  position: (123, 38),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "spdxId",
                    position: (123, 40),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
              position: (123, 23),
             },
             position: (123, 22),
            },
            Parentheses {
             expression: FunctionApplication {
              function: PropertyAccess {
               expression: Variable {
                identifier: "lib",
                position: (123, 49),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "filter",
                  position: (123, 53),
                 },
                ],
               },
               default: None,
              },
              arguments: [
               Parentheses {
                expression: Function {
                 argument: Simple {
                  identifier: "l",
                 },
                 definition: HasProperty {
                  expression: Variable {
                   identifier: "l",
                   position: (123, 64),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "spdxId",
                     position: (123, 68),
                    },
                   ],
                  },
                  position: (123, 66),
                 },
                 position: (123, 61),
                },
                position: (123, 60),
               },
               Parentheses {
                expression: FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "lib",
                   position: (123, 77),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "attrValues",
                     position: (123, 81),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  PropertyAccess {
                   expression: Variable {
                    identifier: "lib",
                    position: (123, 92),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "licenses",
                      position: (123, 96),
                     },
                    ],
                   },
                   default: None,
                  },
                 ],
                },
                position: (123, 76),
               },
              ],
             },
             position: (123, 48),
            },
           ],
          },
          position: (123, 9),
         },
        ],
       },
      },
     ],
     target: Function {
      argument: Simple {
       identifier: "licstr",
      },
      definition: PropertyAccess {
       expression: Variable {
        identifier: "spdxLicenses",
        position: (125, 7),
       },
       attribute_path: AttributePath {
        parts: [
         Expression {
          expression: FunctionApplication {
           function: PropertyAccess {
            expression: Variable {
             identifier: "lib",
             position: (125, 23),
            },
            attribute_path: AttributePath {
             parts: [
              Raw {
               content: "toLower",
               position: (125, 27),
              },
             ],
            },
            default: None,
           },
           arguments: [
            Variable {
             identifier: "licstr",
             position: (125, 35),
            },
           ],
          },
         },
        ],
       },
       default: Some(
        Parentheses {
         expression: FunctionApplication {
          function: PropertyAccess {
           expression: Variable {
            identifier: "lib",
            position: (126, 9),
           },
           attribute_path: AttributePath {
            parts: [
             Raw {
              content: "warn",
              position: (126, 13),
             },
            ],
           },
           default: None,
          },
          arguments: [
           String {
            parts: [
             Raw {
              content: "getLicenseFromSpdxId: No license matches the given SPDX ID: ",
              position: (126, 19),
             },
             Expression {
              expression: Variable {
               identifier: "licstr",
               position: (126, 81),
              },
             },
            ],
            position: (126, 18),
           },
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "shortName",
                 position: (127, 11),
                },
               ],
              },
              to: Variable {
               identifier: "licstr",
               position: (127, 23),
              },
             },
            ],
            recursive: false,
            position: (127, 9),
           },
          ],
         },
         position: (125, 47),
        },
       ),
      },
      position: (124, 8),
     },
     position: (121, 5),
    },
   },
  ],
  recursive: true,
  position: (6, 1),
 },
 position: (4, 1),
}