diff options
| author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-12-09 09:17:16 +0100 |
|---|---|---|
| committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-12-09 09:17:16 +0100 |
| commit | 729053118c4af6039a3743fc6d21935655c62a3c (patch) | |
| tree | e53f647ce1c3a5f68a5cf076cac127e02508fda9 | |
| parent | 1b56431115a54228f27ae573d9f64d57502ff639 (diff) | |
| download | dirty-haskell.org-729053118c4af6039a3743fc6d21935655c62a3c.tar dirty-haskell.org-729053118c4af6039a3743fc6d21935655c62a3c.tar.gz dirty-haskell.org-729053118c4af6039a3743fc6d21935655c62a3c.tar.bz2 dirty-haskell.org-729053118c4af6039a3743fc6d21935655c62a3c.tar.xz dirty-haskell.org-729053118c4af6039a3743fc6d21935655c62a3c.zip | |
More succinct sourceFilter
| -rw-r--r-- | default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/default.nix b/default.nix index ec776eb..fd258bd 100644 --- a/default.nix +++ b/default.nix | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | with pkgs.lib; | 4 | with pkgs.lib; |
| 5 | 5 | ||
| 6 | let | 6 | let |
| 7 | sourceFilter = path: type: ((hasSuffix ".hs" path) || (baseNameOf path == "src") || (baseNameOf path == "blog.cabal")); | 7 | sourceFilter = path: type: (hasPrefix (toString ./src ) path || (baseNameOf path == "blog.cabal")); |
| 8 | in rec { | 8 | in rec { |
| 9 | haskellPackages = pkgs.haskellPackages.override { | 9 | haskellPackages = pkgs.haskellPackages.override { |
| 10 | overrides = self : super : { | 10 | overrides = self : super : { |
