generated from srid/haskell-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
24 lines (24 loc) · 844 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
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
haskell-flake.url = "github:srid/haskell-flake";
nixpkgs-140774-workaround.url = "github:srid/nixpkgs-140774-workaround";
};
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 = {
imports = [
inputs.nixpkgs-140774-workaround.haskellFlakeProjectModules.default
];
devShell.tools = hp: {
inherit (hp) cabal-fmt;
};
};
packages.default = self'.packages.generics-sop-examples;
};
};
}