1
Fork 0
effect-systems/flake.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

2022-03-11 13:44:02 +00:00
{
description = "A minimal Haskell flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-21.11";
flake-utils = {
url = "github:numtide/flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
};
2022-03-11 16:36:13 +00:00
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
2022-03-11 13:44:02 +00:00
2022-03-11 16:36:13 +00:00
haskell = {
ghc = pkgs.haskellPackages.ghc;
hls = pkgs.haskell-language-server.override {
supportedGhcVersions = [ "8107" ];
};
2022-03-11 13:44:02 +00:00
};
2022-03-11 16:36:13 +00:00
in
with pkgs; {
devShell = mkShell {
buildInputs = [
haskell.ghc
haskell.hls
gdb
# GHC depends on LANG so need this package to properly interpret our
# files with e.g. tasty-discover.
# https://www.reddit.com/r/Nix/comments/jyczts/nixshell_locale_issue/
glibcLocales
haskellPackages.cabal-install
haskellPackages.ormolu
haskellPackages.tasty-discover
];
};
});
2022-03-11 13:44:02 +00:00
}