Skip to content

Instantly share code, notes, and snippets.

@GZGavinZhao
Created February 10, 2023 02:59
Show Gist options
  • Save GZGavinZhao/354ca43f4095a6b774d23d9c2234a12c to your computer and use it in GitHub Desktop.
Save GZGavinZhao/354ca43f4095a6b774d23d9c2234a12c to your computer and use it in GitHub Desktop.
My OI environment
# 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