-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
34 lines (27 loc) · 995 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
25
26
27
28
29
30
31
32
33
34
{
inputs = {
haskellNix.url = "github:input-output-hk/haskell.nix";
nixpkgs.follows = "haskellNix/nixpkgs-unstable";
nixpkgs-22_11.url = "github:NixOS/nixpkgs/22.11";
flake-parts.url = "github:hercules-ci/flake-parts";
## See https://input-output-hk.github.io/cardano-haskell-packages/
CHaP = {
url = "github:input-output-hk/cardano-haskell-packages?ref=repo";
flake = false;
};
};
outputs = inputs@{ flake-parts, CHaP, haskellNix, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
flake.internal-lib = import ./internal-lib.nix;
systems = [ "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ];
imports = [
crowdfunding/crowdfunding.nix
p-multisig-stateful/p-multisig-stateful.nix
auction/auction.nix
lotto/lotto-common.nix
lotto/onchain/lotto-onchain.nix
lotto/offchain/lotto-offchain.nix
];
perSystem = { pkgs, ... }: { formatter = pkgs.nixfmt; };
};
}