generated from srid/ema-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
flake.nix
37 lines (37 loc) · 1.22 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
35
36
37
# This is a modular Nix flake
# Learn about it here: https://zero-to-flakes.com/
{
description = "Ema template app";
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, haskell-flake, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = nixpkgs.lib.systems.flakeExposed;
imports = [
haskell-flake.flakeModule
];
perSystem = { self', inputs', pkgs, lib, ... }: {
# "haskellProjects" comes from https://github.com/srid/haskell-flake
haskellProjects.default = {
devShell.tools = hp: {
inherit (pkgs)
treefmt
nixpkgs-fmt
foreman
git;
inherit (hp)
cabal-fmt
fourmolu
tailwind;
};
# Want to override Haskell dependencies?
# See https://zero-to-flakes.com/haskell-flake/dependency
};
packages.default = self'.packages.fpindia-site;
apps.tailwind-run.program = "${lib.getExe pkgs.haskellPackages.tailwind}";
};
};
}