Created
February 10, 2022 16:27
-
-
Save Gabriella439/4c0c2a81cc0e089043ed33da5b01fee7 to your computer and use it in GitHub Desktop.
nix-shell for GHC development
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
# This was only tested against revision ac2d18a7353cd3ac1ba4b5993f2776fe0c5eedc9 | |
# of https://gitlab.haskell.org/ghc/ghc | |
let | |
nixpkgs = builtins.fetchTarball { | |
url = "https://github.com/NixOS/nixpkgs/archive/7e003d7fb9eff8ecb84405360c75c716cdd1f79f.tar.gz"; | |
sha256 = "08y8pmz7xa58mrk52nafgnnrryxsmya9qaab3nccg18jifs5gyal"; | |
}; | |
config.allowBroken = true; | |
pkgs = import nixpkgs { inherit config; }; | |
in | |
pkgs.mkShell { | |
nativeBuildInputs = [ | |
pkgs.automake | |
pkgs.autoconf | |
pkgs.python3 | |
(pkgs.haskell.packages.ghc902.ghcWithPackages (p: [ | |
p.alex | |
p.happy | |
p.haddock | |
])) | |
pkgs.sphinx | |
pkgs.texlive.combined.scheme-small | |
pkgs.gmp | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there a reason to use this over ghc.nix?