-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
27 lines (26 loc) · 979 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
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
haskell-flake.url = "github:srid/haskell-flake";
};
outputs = inputs@{ self, nixpkgs, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = nixpkgs.lib.systems.flakeExposed;
imports = [ inputs.haskell-flake.flakeModule ];
perSystem = { self', pkgs, ... }: {
haskellProjects.default = {
packages = {
# You can add more than one local package here.
stxlib.root = ./.; # Assumes ./example.cabal
};
# buildTools = hp: { fourmolu = hp.fourmolu; ghcid = null; };
# overrides = self: super: { };
# hlintCheck.enable = true;
# hlsCheck.enable = true;
};
# haskell-flake doesn't set the default package, but you can do it here.
packages.default = self'.packages.stxlib;
};
};
}