From f75eaf7fff963b88e412d315d0fdef8151943c20 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sat, 23 Feb 2019 19:46:09 -0800 Subject: Reorganize directory --- pack/ibb.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pack/ibb.nix (limited to 'pack/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; + }; +} -- cgit v1.2.3