core.workflow(
    name = "default",
    origin = git.github_origin(
        url = "https://github.com/NixOS/nixpkgs.git",
        ref = "nixos-unstable",
    ),
    destination = hg.destination(
        url = "file:///home/lukegb/depot",
        fetch = "default",
        push = "default",
    ),
    destination_files = glob(["third_party/nixpkgs/**"], exclude = [
        "third_party/nixpkgs/copy.bara.sky",
        "third_party/nixpkgs/patches/**",
    ]),
    authoring = authoring.pass_thru("Default email <noreply+nixpkgs@lukegb.com>"),
    transformations = [
        patch.apply(series = "patches/series"),
        core.move("", "third_party/nixpkgs"),
    ],
)