Use pkgs.nix-gitignore
This commit is contained in:
parent
a5f4a75de1
commit
3cfe2fe966
1 changed files with 5 additions and 1 deletions
|
@ -26,11 +26,15 @@
|
||||||
# nix-env -f "<nixpkgs>" -qaP -A haskell.compiler
|
# nix-env -f "<nixpkgs>" -qaP -A haskell.compiler
|
||||||
hp = pkgs.haskellPackages; # pkgs.haskell.packages.ghc921;
|
hp = pkgs.haskellPackages; # pkgs.haskell.packages.ghc921;
|
||||||
|
|
||||||
|
# Paths to ignore when building the cabal package.
|
||||||
|
# FIXME: Why does changing any of this this retrigger Nix builds anyway?
|
||||||
|
ignorePatterns = [ "*.nix" "flake.lock" "*.md" "fourmolu.yaml" "hie.yaml" "bin" ".envrc" ".ghcid" ".gitattributes" ".github" ".gitignore" ".vscode" ];
|
||||||
|
|
||||||
project = returnShellEnv:
|
project = returnShellEnv:
|
||||||
hp.developPackage {
|
hp.developPackage {
|
||||||
inherit returnShellEnv;
|
inherit returnShellEnv;
|
||||||
name = "haskell-template";
|
name = "haskell-template";
|
||||||
root = ./.;
|
root = pkgs.nix-gitignore.gitignoreSource ignorePatterns ./.;
|
||||||
withHoogle = false;
|
withHoogle = false;
|
||||||
overrides = self: super: with pkgs.haskell.lib; {
|
overrides = self: super: with pkgs.haskell.lib; {
|
||||||
# Use callCabal2nix to override Haskell dependencies here
|
# Use callCabal2nix to override Haskell dependencies here
|
||||||
|
|
Loading…
Reference in a new issue