forked from nammayatri/nammayatri
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
89 lines (77 loc) · 2.82 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
nixConfig = {
# Workaround https://github.com/nammayatri/nammayatri/pull/9493#issuecomment-2506672419
max-call-depth = "1000000";
};
inputs = {
common.url = "github:nammayatri/common";
nixpkgs.follows = "common/nixpkgs";
haskell-flake.follows = "common/haskell-flake";
# Backend inputs
shared-kernel = {
url = "github:nammayatri/shared-kernel";
inputs.nixpkgs.follows = "nixpkgs";
};
namma-dsl = {
url = "github:nammayatri/namma-dsl";
};
haskell-cac = {
url = "github:piyushKumar-1/haskell_cac_client/Testing";
inputs = {
common.follows = "common";
nixpkgs.follows = "common/nixpkgs"; # nix eval is failing in pipeline without giving proper error message #36 for nix update https://github.com/srid/nixci/issues/36
};
};
beckn-gateway = {
url = "github:nammayatri/beckn-gateway";
inputs = {
common.follows = "common";
haskell-flake.follows = "haskell-flake";
nixpkgs.follows = "nixpkgs";
shared-kernel.follows = "shared-kernel";
};
};
location-tracking-service.url = "github:nammayatri/location-tracking-service";
passetto = {
url = "github:nammayatri/passetto/nixify";
inputs = {
nixpkgs.follows = "common/nixpkgs";
flake-parts.follows = "common/flake-parts";
haskell-flake.follows = "common/haskell-flake";
process-compose-flake.follows = "common/process-compose-flake";
services-flake.follows = "services-flake";
};
};
# Question: move this to common?
services-flake.url = "github:juspay/services-flake";
# We cannot use southern-zone-latest here, because the sha256 will change
# over time. NOTE: This file is not permanent, find the available one at
# https://download.geofabrik.de/asia/india/
# NOTE: If you change this, also change `openStreetDataFileName` in osrm.nix
osrm-pbf.url = "https://download.geofabrik.de/asia/india/southern-zone-240101.osm.pbf";
osrm-pbf.flake = false;
easy-purescript-nix.url = "github:justinwoo/easy-purescript-nix/a90bd941297497c83205f0a64f30c5188a2a4fda";
easy-purescript-nix.flake = false;
# Amazonka 2.0 tagged release
# amazonka-2.0 flake seems broken still.
amazonka-git.url = "github:brendanhay/amazonka?ref=2.0.0";
amazonka-git.flake = false;
json-logic-hs.url = "github:nammayatri/json-logic-hs";
json-logic-hs.flake = false;
};
outputs = inputs:
inputs.common.lib.mkFlake { inherit inputs; } {
imports = [
./Backend/default.nix
./Frontend/default.nix
];
perSystem = { self', ... }: {
cachix-push = {
pathsToCache = {
ny-backend-shell = self'.devShells.backend;
ny-frontend-shell = self'.devShells.frontend;
};
};
};
};
}