-
Notifications
You must be signed in to change notification settings - Fork 3
/
flake.nix
41 lines (36 loc) · 1.14 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
38
39
40
41
{
inputs = {
common.url = "github:nammayatri/common";
nixpkgs.follows = "common/nixpkgs";
haskell-flake.follows = "common/haskell-flake";
shared-kernel.url = "github:nammayatri/shared-kernel";
};
outputs = inputs:
inputs.common.lib.mkFlake { inherit inputs; } {
imports = [
./nix/arion-configuration.nix
./nix/docker.nix
];
perSystem = { self', pkgs, lib, config, ... }: {
haskellProjects.default = {
imports = [
inputs.shared-kernel.haskellFlakeProjectModules.output
];
devShell.tools = _: {
inherit (self'.packages) arion;
};
autoWire = [ "packages" "checks" "apps" ];
};
# FIX ME: confirm what the "process-compose" field needs to be
process-compose = { };
packages.default = self'.packages.beckn-gateway;
devShells.default = pkgs.mkShell {
# cf. https://haskell.flake.page/devshell#composing-devshells
inputsFrom = [
config.haskellProjects.default.outputs.devShell
config.pre-commit.devShell
];
};
};
};
}