-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathflake.nix
More file actions
30 lines (27 loc) · 837 Bytes
/
flake.nix
File metadata and controls
30 lines (27 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
description = "Development environment for hpqtypes-effectful";
inputs = {
# Utilitiy library for managing Nix Flakes.
flake-utils.url = "github:numtide/flake-utils";
# Nix package set
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
outputs = { self, flake-utils, nixpkgs }:
flake-utils.lib.eachSystem
(with flake-utils.lib.system; [ x86_64-linux x86_64-darwin aarch64-darwin ])
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
ghc-version = "ghc8107";
hpkgs = pkgs.haskell.packages.${ghc-version};
in {
devShells.default = hpkgs.shellFor {
packages = p: [ ];
buildInputs = with hpkgs; [
cabal-install
haskell-language-server
pkgs.postgresql_13
];
};
});
}