-
Notifications
You must be signed in to change notification settings - Fork 10
/
flake.nix
37 lines (36 loc) · 925 Bytes
/
flake.nix
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
31
32
33
34
35
36
{
description = "Basic Haskell Project Flake";
inputs = {
haskellProjectFlake.url = "github:mstksg/haskell-project-flake";
nixpkgs.follows = "haskellProjectFlake/nixpkgs";
};
outputs =
{ self
, nixpkgs
, flake-utils
, haskellProjectFlake
}:
flake-utils.lib.eachDefaultSystem (system:
let
name = "hamilton";
pkgs = import nixpkgs {
inherit system;
overlays = [ haskellProjectFlake.overlays."${system}".default ];
};
project-flake = pkgs.haskell-project-flake
{
inherit name;
src = ./.;
excludeCompilerMajors = [ "ghc911" ];
defaultCompiler = "ghc982";
};
in
{
packages = project-flake.packages;
apps = project-flake.apps;
checks = project-flake.checks;
devShells = project-flake.devShells;
legacyPackages."${name}" = project-flake;
}
);
}