generated from srid/ema-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
34 lines (33 loc) · 1.07 KB
/
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
{
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, haskell-flake, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = nixpkgs.lib.systems.flakeExposed;
imports = [
haskell-flake.flakeModule
];
perSystem = { self', inputs', pkgs, ... }: {
# "haskellProjects" comes from https://github.com/srid/haskell-flake
haskellProjects.default = {
imports = [
inputs.nixpkgs-140774-workaround.haskellFlakeProjectModules.default
];
devShell.tools = hp: {
inherit (pkgs)
treefmt
nixpkgs-fmt
foreman;
inherit (hp)
cabal-fmt
fourmolu tailwind;
};
};
packages.default = self'.packages.MoodTracker-Tutorial;
};
};
}