1
Fork 0
tagless-final-parsing/flake.nix

33 lines
985 B
Nix
Raw Normal View History

2021-12-20 13:16:50 +00:00
{
description = "Code samples for `Tagless Final Variables`.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-21.11";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
2021-12-20 13:53:18 +00:00
ghc = pkgs.haskellPackages.ghc;
hls = pkgs.haskell-language-server.override {
supportedGhcVersions = [ "8107" ];
};
2021-12-20 13:16:50 +00:00
in {
devShell = pkgs.mkShell {
buildInputs = [
2021-12-20 13:53:18 +00:00
ghc
hls
pkgs.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/
pkgs.glibcLocales
2021-12-20 13:16:50 +00:00
pkgs.haskellPackages.cabal-install
2021-12-20 13:53:18 +00:00
pkgs.haskellPackages.tasty-discover
2021-12-20 13:16:50 +00:00
];
};
});
}