Created
February 4, 2020 06:18
-
-
Save thoferon/27285ce82277f57e026830e96e547b32 to your computer and use it in GitHub Desktop.
haskell-nix-setup
This file contains hidden or 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
{ pkgs ? import ../nixpkgs {} }: | |
let | |
inherit (pkgs.haskell) ghcVersion; | |
hsPkgs = pkgs.haskell.packages.${ghcVersion}; | |
pkgDrv = hsPkgs.callCabal2nix "demo" ../.. {}; | |
haskellDeps = pkgDrv.getBuildInputs.haskellBuildInputs; | |
ghc = hsPkgs.ghcWithHoogle (_: haskellDeps); | |
in | |
{ | |
inherit ghc; | |
inherit (hsPkgs) cabal-install ghcide hlint; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment