From 942c8422b961d03e698ad5e036fd4a7d5e7fb0b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Thu, 17 Jan 2019 19:34:30 +0100 Subject: [PATCH] Add haskell packages --- configs/packages.nix | 4 +- configs/shells.nix | 2 +- dot/haskells.nix | 96 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 99 insertions(+), 3 deletions(-) create mode 100644 dot/haskells.nix diff --git a/configs/packages.nix b/configs/packages.nix index 27c511e..54d1cdf 100644 --- a/configs/packages.nix +++ b/configs/packages.nix @@ -4,6 +4,7 @@ let daybook = pkgs.callPackage ../packages/daybook.nix {}; iolanguage = pkgs.callPackage ../packages/iolanguage.nix {}; todoist = pkgs.callPackage ../packages/todoist {}; + haskells = import ../dot/haskells.nix; unstable = import {}; executables = pkgs.haskell.lib.justStaticExecutables; in with pkgs; @@ -118,13 +119,12 @@ in with pkgs; chicken clojure gcc - ghc + (haskellPackages.ghcWithHoogle haskells) (executables haskellPackages.cabal-install) (executables haskellPackages.ghcid) (executables haskellPackages.hakyll) (executables haskellPackages.hasktags) (executables haskellPackages.hindent) - (executables haskellPackages.hoogle) (executables haskellPackages.pointfree) (executables haskellPackages.pointful) (executables haskellPackages.hlint) diff --git a/configs/shells.nix b/configs/shells.nix index 24074e3..43cf5c6 100644 --- a/configs/shells.nix +++ b/configs/shells.nix @@ -10,7 +10,7 @@ ip = "${pkgs.iproute}/bin/ip -c"; ocaml = rlwrap "${pkgs.ocaml}/bin/ocaml"; tmux = "${pkgs.tmux}/bin/tmux -2"; - inix = ''nix repl '' ''; + nixi = ''nix repl ""''; }; environment.interactiveShellInit = "export PATH=$PATH:$HOME/.local/bin:$HOME/.cargo/bin"; diff --git a/dot/haskells.nix b/dot/haskells.nix new file mode 100644 index 0000000..6098ece --- /dev/null +++ b/dot/haskells.nix @@ -0,0 +1,96 @@ +haskellPackages: +with haskellPackages; [ + HTTP + HUnit + MissingH + QuickCheck + ad + adjunctions + aeson + algebra + ansi-terminal + async + attoparsec + base-orphans + bifunctors + binary + blaze-html + blaze-markup + brick + bytes + bytestring + case-insensitive + cassava + cereal + clock + comonad + comonad-transformers + conduit + conduit-extra + constraints + containers + contravariant + criterion + data-default + directory + dlist + either + exceptions + extra + filepath + foundation + free + haskeline + hedgehog + hourglass + hspec + http-client + http-conduit + kan-extensions + lens + linear + lucid + megaparsec + microlens + monad-logger + mono-traversable + mtl + network + parallel + parsec + persistent + pipes + pointed + pretty-show + primitive + process + profunctors + regex-tdfa + safe + semigroupoids + semigroups + servant + servant-client + servant-docs + servant-server + servant-swagger + servant-blaze + split + stm + tagsoup + tasty + text + time + transformers + turtle + type-unary + unix-time + unordered-containers + vector + vinyl + void + vty + warp + wreq + yaml +]