default.nix: filter package root with nix-gitignore

so we don't copy stuff like `dist-newstyle`.
This commit is contained in:
Richard Marko 2020-06-23 15:38:21 +02:00 committed by Anton Latukha
parent bbb7b49b0b
commit 59777e12b8
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ let
# General description of package
package = haskellPackages.developPackage {
name = "hnix";
root = ./.;
root = pkgs.nix-gitignore.gitignoreSource [ ] ./.;
modifier = drv: pkgs.haskell.lib.overrideCabal drv (attrs: {
buildTools = (attrs.buildTools or []) ++ [