---
Function {
    argument: None,
    arguments: FunctionArguments {
        arguments: [
            FunctionArgument {
                identifier: "fetchpatch",
                default: None,
            },
            FunctionArgument {
                identifier: "ncurses",
                default: None,
            },
            FunctionArgument {
                identifier: "coreutils",
                default: None,
            },
            FunctionArgument {
                identifier: "fetchurl",
                default: None,
            },
            FunctionArgument {
                identifier: "stdenv",
                default: None,
            },
            FunctionArgument {
                identifier: "lib",
                default: None,
            },
        ],
        ellipsis: false,
    },
    definition: FunctionApplication {
        function: PropertyAccess {
            expression: Variable {
                identifier: "stdenv",
                position: (3, 1),
            },
            attribute_path: AttributePath {
                attributes: [
                    Raw {
                        content: "mkDerivation",
                        position: (3, 8),
                    },
                ],
            },
            default: None,
        },
        arguments: [
            Map {
                bindings: [
                    KeyValue(
                        AttributePath {
                            attributes: [
                                Raw {
                                    content: "pname",
                                    position: (4, 3),
                                },
                            ],
                        },
                        String {
                            parts: [
                                Raw {
                                    content: "entr",
                                    position: (4, 12),
                                },
                            ],
                        },
                    ),
                    KeyValue(
                        AttributePath {
                            attributes: [
                                Raw {
                                    content: "version",
                                    position: (5, 3),
                                },
                            ],
                        },
                        String {
                            parts: [
                                Raw {
                                    content: "5.1",
                                    position: (5, 14),
                                },
                            ],
                        },
                    ),
                    KeyValue(
                        AttributePath {
                            attributes: [
                                Raw {
                                    content: "src",
                                    position: (7, 3),
                                },
                            ],
                        },
                        FunctionApplication {
                            function: Variable {
                                identifier: "fetchurl",
                                position: (7, 9),
                            },
                            arguments: [
                                Map {
                                    bindings: [
                                        KeyValue(
                                            AttributePath {
                                                attributes: [
                                                    Raw {
                                                        content: "url",
                                                        position: (8, 5),
                                                    },
                                                ],
                                            },
                                            String {
                                                parts: [
                                                    Raw {
                                                        content: "https://eradman.com/entrproject/code/",
                                                        position: (8, 12),
                                                    },
                                                    Expression {
                                                        expression: Variable {
                                                            identifier: "pname",
                                                            position: (8, 51),
                                                        },
                                                    },
                                                    Raw {
                                                        content: "-",
                                                        position: (8, 57),
                                                    },
                                                    Expression {
                                                        expression: Variable {
                                                            identifier: "version",
                                                            position: (8, 60),
                                                        },
                                                    },
                                                    Raw {
                                                        content: ".tar.gz",
                                                        position: (8, 68),
                                                    },
                                                ],
                                            },
                                        ),
                                        KeyValue(
                                            AttributePath {
                                                attributes: [
                                                    Raw {
                                                        content: "hash",
                                                        position: (9, 5),
                                                    },
                                                ],
                                            },
                                            String {
                                                parts: [
                                                    Raw {
                                                        content: "sha256-D4f1d7zodkHFJa3bm8xgu6pXn+mB2rdZBD484VVtu5I=",
                                                        position: (9, 13),
                                                    },
                                                ],
                                            },
                                        ),
                                    ],
                                    recursive: false,
                                },
                            ],
                        },
                    ),
                    KeyValue(
                        AttributePath {
                            attributes: [
                                Raw {
                                    content: "postPatch",
                                    position: (12, 3),
                                },
                            ],
                        },
                        String {
                            parts: [
                                Raw {
                                    content: "substituteInPlace Makefile.bsd --replace /bin/echo echo\nsubstituteInPlace entr.c --replace /bin/cat ",
                                    position: (13, 1),
                                },
                                Expression {
                                    expression: Variable {
                                        identifier: "coreutils",
                                        position: (14, 51),
                                    },
                                },
                                Raw {
                                    content: "/bin/cat\nsubstituteInPlace entr.c --replace /usr/bin/clear ",
                                    position: (14, 61),
                                },
                                Expression {
                                    expression: PropertyAccess {
                                        expression: Variable {
                                            identifier: "ncurses",
                                            position: (15, 57),
                                        },
                                        attribute_path: AttributePath {
                                            attributes: [
                                                Raw {
                                                    content: "out",
                                                    position: (15, 65),
                                                },
                                            ],
                                        },
                                        default: None,
                                    },
                                },
                                Raw {
                                    content: "/bin/clear\nsubstituteInPlace entr.1 --replace /bin/cat cat\nsubstituteInPlace entr.1 --replace /usr/bin/clear clear\n",
                                    position: (15, 69),
                                },
                            ],
                        },
                    ),
                    KeyValue(
                        AttributePath {
                            attributes: [
                                Raw {
                                    content: "dontAddPrefix",
                                    position: (19, 3),
                                },
                            ],
                        },
                        Variable {
                            identifier: "true",
                            position: (19, 19),
                        },
                    ),
                    KeyValue(
                        AttributePath {
                            attributes: [
                                Raw {
                                    content: "doCheck",
                                    position: (20, 3),
                                },
                            ],
                        },
                        Variable {
                            identifier: "true",
                            position: (20, 13),
                        },
                    ),
                    KeyValue(
                        AttributePath {
                            attributes: [
                                Raw {
                                    content: "checkTarget",
                                    position: (21, 3),
                                },
                            ],
                        },
                        String {
                            parts: [
                                Raw {
                                    content: "test",
                                    position: (21, 18),
                                },
                            ],
                        },
                    ),
                    KeyValue(
                        AttributePath {
                            attributes: [
                                Raw {
                                    content: "installFlags",
                                    position: (22, 3),
                                },
                            ],
                        },
                        List {
                            elements: [
                                String {
                                    parts: [
                                        Raw {
                                            content: "PREFIX=$(out)",
                                            position: (22, 21),
                                        },
                                    ],
                                },
                            ],
                        },
                    ),
                    KeyValue(
                        AttributePath {
                            attributes: [
                                Raw {
                                    content: "meta",
                                    position: (24, 3),
                                },
                            ],
                        },
                        With {
                            expression: Variable {
                                identifier: "lib",
                                position: (24, 15),
                            },
                            target: Map {
                                bindings: [
                                    KeyValue(
                                        AttributePath {
                                            attributes: [
                                                Raw {
                                                    content: "homepage",
                                                    position: (25, 5),
                                                },
                                            ],
                                        },
                                        String {
                                            parts: [
                                                Raw {
                                                    content: "https://eradman.com/entrproject/",
                                                    position: (25, 17),
                                                },
                                            ],
                                        },
                                    ),
                                    KeyValue(
                                        AttributePath {
                                            attributes: [
                                                Raw {
                                                    content: "description",
                                                    position: (26, 5),
                                                },
                                            ],
                                        },
                                        String {
                                            parts: [
                                                Raw {
                                                    content: "Run arbitrary commands when files change",
                                                    position: (26, 20),
                                                },
                                            ],
                                        },
                                    ),
                                    KeyValue(
                                        AttributePath {
                                            attributes: [
                                                Raw {
                                                    content: "changelog",
                                                    position: (27, 5),
                                                },
                                            ],
                                        },
                                        String {
                                            parts: [
                                                Raw {
                                                    content: "https://github.com/eradman/entr/raw/",
                                                    position: (27, 18),
                                                },
                                                Expression {
                                                    expression: Variable {
                                                        identifier: "version",
                                                        position: (27, 56),
                                                    },
                                                },
                                                Raw {
                                                    content: "/NEWS",
                                                    position: (27, 64),
                                                },
                                            ],
                                        },
                                    ),
                                    KeyValue(
                                        AttributePath {
                                            attributes: [
                                                Raw {
                                                    content: "license",
                                                    position: (28, 5),
                                                },
                                            ],
                                        },
                                        PropertyAccess {
                                            expression: Variable {
                                                identifier: "licenses",
                                                position: (28, 15),
                                            },
                                            attribute_path: AttributePath {
                                                attributes: [
                                                    Raw {
                                                        content: "isc",
                                                        position: (28, 24),
                                                    },
                                                ],
                                            },
                                            default: None,
                                        },
                                    ),
                                    KeyValue(
                                        AttributePath {
                                            attributes: [
                                                Raw {
                                                    content: "platforms",
                                                    position: (29, 5),
                                                },
                                            ],
                                        },
                                        PropertyAccess {
                                            expression: Variable {
                                                identifier: "platforms",
                                                position: (29, 17),
                                            },
                                            attribute_path: AttributePath {
                                                attributes: [
                                                    Raw {
                                                        content: "all",
                                                        position: (29, 27),
                                                    },
                                                ],
                                            },
                                            default: None,
                                        },
                                    ),
                                    KeyValue(
                                        AttributePath {
                                            attributes: [
                                                Raw {
                                                    content: "maintainers",
                                                    position: (30, 5),
                                                },
                                            ],
                                        },
                                        With {
                                            expression: Variable {
                                                identifier: "maintainers",
                                                position: (30, 24),
                                            },
                                            target: List {
                                                elements: [
                                                    Variable {
                                                        identifier: "pSub",
                                                        position: (30, 39),
                                                    },
                                                    Variable {
                                                        identifier: "synthetica",
                                                        position: (30, 44),
                                                    },
                                                ],
                                            },
                                        },
                                    ),
                                ],
                                recursive: false,
                            },
                        },
                    ),
                ],
                recursive: true,
            },
        ],
    },
}