ignore .gitignored files for cabal2nix

This commit is contained in:
Trolli Schmittlauch 2020-04-02 10:49:15 +02:00
parent 6c90eb75b4
commit 6c7feb73c6
2 changed files with 4 additions and 1 deletions

2
Hash2Pub/.gitignore vendored
View file

@ -1,2 +1,4 @@
dist-newstyle/ dist-newstyle/
*.local *.local
*.swp
*.swo

View file

@ -11,7 +11,8 @@
let let
hp = pkgs.haskell.packages."${compiler}"; hp = pkgs.haskell.packages."${compiler}";
drv = hp.callCabal2nix "Hash2Pub" ./Hash2Pub.cabal {}; src = pkgs.nix-gitignore.gitignoreSource [] ./.;
drv = hp.callCabal2nix "Hash2Pub" "${src}/Hash2Pub.cabal" {};
in in
{ {
my_project = drv; my_project = drv;