Skip to content

Is there a neat way of using gitIgnoreSource with haskellPackages.developPackage #103062

@expipiplus1

Description

@expipiplus1

At the moment this seems to be the neatest way:

haskellPackages.developPackage rec {
  root = ./.;
  modifier = drv:
    pkgs.haskell.lib.overrideSrc drv {
      src = (pkgs.nix-gitignore.gitignoreSource [ ] root);
    };
}

Sadly this doesn't work:

haskellPackages.developPackage rec {
  root = pkgs.nix-gitignore.gitignoreSource [ ] ./.;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions