summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/default.nix b/default.nix
index 629f1bb..ec776eb 100644
--- a/default.nix
+++ b/default.nix
@@ -1,7 +1,11 @@
1{ pkgs ? (import <nixpkgs> {}) 1{ pkgs ? (import <nixpkgs> {})
2}: 2}:
3
4with pkgs.lib;
3 5
4rec { 6let
7 sourceFilter = path: type: ((hasSuffix ".hs" path) || (baseNameOf path == "src") || (baseNameOf path == "blog.cabal"));
8in rec {
5 haskellPackages = pkgs.haskellPackages.override { 9 haskellPackages = pkgs.haskellPackages.override {
6 overrides = self : super : { 10 overrides = self : super : {
7 hakyll = pkgs.haskell.lib.overrideCabal super.hakyll (drv: { 11 hakyll = pkgs.haskell.lib.overrideCabal super.hakyll (drv: {
@@ -11,7 +15,7 @@ rec {
11 }; 15 };
12 dirty-haskell = pkgs.stdenv.lib.overrideDerivation (haskellPackages.callPackage ./blog.nix {}) 16 dirty-haskell = pkgs.stdenv.lib.overrideDerivation (haskellPackages.callPackage ./blog.nix {})
13 (attrs : 17 (attrs :
14 { src = ./.; 18 { src = builtins.filterSource sourceFilter ./.;
15 shellHook = '' 19 shellHook = ''
16 export PROMPT_INFO=${attrs.name} 20 export PROMPT_INFO=${attrs.name}
17 ''; 21 '';