diff options
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..a602d13 --- /dev/null +++ b/default.nix @@ -0,0 +1,21 @@ +{ pkgs ? import <nixpkgs> { } }: +let + haskellPackages = pkgs.haskellPackages.override { + overrides = self: super: { + abuilder = self.callCabal2nix "abuilder" ./. { }; + }; + }; +in +rec { + inherit (haskellPackages) abuilder; + shell = haskellPackages.shellFor { + packages = _: [ abuilder ]; + buildInputs = [ + haskellPackages.cabal2nix + haskellPackages.cabal-install + haskellPackages.ormolu + ]; + withHoogle = true; + withHaddock = true; + }; +} |