-
-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shell.nix: Set up ghc environment, add haskell-language-server
Manually lists the nix dependencies required by cabal2nix; this of course requires that the local <nixpkgs> version agrees with the package versions of cabal2nix dependencies, so ymmv.
- Loading branch information
1 parent
39da11f
commit 31f19e3
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
if type -p lorri; then | ||
echo "direnv: found lorri, using" 1>&2 | ||
eval "$(lorri direnv)" | ||
else | ||
echo "direnv: using direnv nix support" 1>&2 | ||
use nix; | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ pkgs ? import <nixpkgs> {} }: | ||
|
||
let | ||
haskellPackages = pkgs.haskellPackages; | ||
ghc = haskellPackages.ghcWithHoogle (hps: [ | ||
hps.ansi-wl-pprint | ||
hps.distribution-nixpkgs | ||
hps.hackage-db | ||
hps.hopenssl | ||
hps.hpack | ||
hps.language-nix | ||
hps.lens | ||
hps.optparse-applicative | ||
hps.pretty | ||
hps.split | ||
hps.yaml | ||
hps.monad-par | ||
hps.monad-par-extras | ||
hps.tasty | ||
hps.tasty-golden | ||
]); | ||
|
||
in pkgs.stdenv.mkDerivation { | ||
name = "shell"; | ||
buildInputs = [ | ||
ghc | ||
haskellPackages.cabal-install | ||
haskellPackages.haskell-language-server | ||
(pkgs.lib.getLib pkgs.openssl) | ||
]; | ||
} |