-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.nix
29 lines (24 loc) · 880 Bytes
/
build.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
{ inputs, ... }: {
perSystem = { config, system, ... }:
let
hsFlake =
inputs.flake-lang.lib.${system}.haskellPlutusFlake
{
src = ./.;
name = "ledger-sim";
inherit (config.settings.haskell) index-state compiler-nix-name;
devShellTools = config.settings.shell.tools;
devShellHook = config.settings.shell.hook;
};
in
{
devShells.dev-ledger-sim = hsFlake.devShell;
packages = {
# WARN(bladyjoker): We have to pick the hsFlake.packages like this otherwise flake-parts goes into `infinite recursion`.
ledger-sim-lib = hsFlake.packages."ledger-sim:lib:ledger-sim";
# TODO(chase): Enable this once we have a CLI
# ledger-sim-cli = hsFlake.packages."ledger-sim:exe:ledger-sim-cli";
};
inherit (hsFlake) checks;
};
}