Skip to content

[BUG] extraFiles fails when source is a directory #3992

@daniellaing

Description

@daniellaing

Plugin

No response

Nixpkgs Release

unstable

Home Manager Release

None

I have read the FAQ

  • I have read the FAQ and my bug is not listed there.

Description

Just the title.

Fails with the following error:

error: Cannot build '/nix/store/g6zhk1l7bc5w6rmmj9l0fbh7w1i0j23z-nvim-config.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/pdlwp52il52kgjkcl36yf03rffbzh166-nvim-config
       Last 1 log lines:
       > cp: -r not specified; omitting directory '/nix/store/15b81403vyciiqw98ihz61dn9y73x978-lua'
       For full logs, run:
         nix log /nix/store/g6zhk1l7bc5w6rmmj9l0fbh7w1i0j23z-nvim-config.drv

Minimal, Reproducible Example (MRE)

programs.nixvim = {
    # Where lua is a directory, for example, of lua files to include.
    extraFiles."example".source = ./lua;
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions