diff options
author | Ben Sima <ben@bsima.me> | 2019-02-23 19:46:09 -0800 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2019-02-23 19:54:41 -0800 |
commit | f75eaf7fff963b88e412d315d0fdef8151943c20 (patch) | |
tree | 4e10e624ab6b93b640f2a93f648207a41cc90a25 /pack | |
parent | 81313e15c70bf1c2fe2cd4720f19ae7a2e952fc7 (diff) |
Reorganize directory
Diffstat (limited to 'pack')
-rw-r--r-- | pack/default.nix | 2 | ||||
-rw-r--r-- | pack/ibb.nix | 23 |
2 files changed, 24 insertions, 1 deletions
diff --git a/pack/default.nix b/pack/default.nix index 6c218bb..255db4c 100644 --- a/pack/default.nix +++ b/pack/default.nix @@ -2,5 +2,5 @@ self: super: { fathom = import ./fathom.nix { nixpkgs = super; }; - ibb = import ../ibb/default.nix { }; + ibb = import ./ibb.nix { }; } diff --git a/pack/ibb.nix b/pack/ibb.nix new file mode 100644 index 0000000..ba4cae7 --- /dev/null +++ b/pack/ibb.nix @@ -0,0 +1,23 @@ +{ compiler ? "ghc843" +, doHaddock ? false +, doBenchmark ? false +, doCheck ? true +, withHoogle ? false +, nixpkgs ? builtins.fetchTarball (import ./nixpkgs.nix) +}: + +with import "${nixpkgs}" {}; + +haskell.packages.${compiler}.developPackage { + root = ../.; + overrides = with haskell.lib; self: super: { + ghc = + if withHoogle + then super.ghc // {withPackages = super.ghc.withHoogle;} + else super.ghc; + ghcWithPackages = + if withHoogle + then self.ghc.withPackages + else super.ghcWithPackages; + }; +} |