Created
February 10, 2023 02:59
-
-
Save GZGavinZhao/354ca43f4095a6b774d23d9c2234a12c to your computer and use it in GitHub Desktop.
My OI environment
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
# Nix下的OI环境,主要是为了Haskell | |
let | |
# 万一以后需要呢 | |
config = { allowUnfree = true; }; | |
pkgs = import <nixpkgs> { inherit config; }; | |
in { | |
# Base | |
inherit (pkgs) nixfmt haskell-language-server ormolu; | |
# GHC with other Haskell packages | |
ghc = pkgs.haskellPackages.ghcWithPackages (pkgs: with pkgs; [ vector ]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment