-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.nix
46 lines (42 loc) · 1.3 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{ inputs, lib, ... }:
{
imports = [ ];
config = {
perSystem = { system, config, pkgs, ... }:
let
tsFlake = inputs.flake-lang.lib.${system}.typescriptFlake {
name = "dens-integration";
src = ./.;
inherit (config.settings)
devShellTools
devShellHook;
testTools =
[
pkgs.postgresql
inputs.plutip.packages.${system}."plutip-core:exe:local-cluster"
inputs.ogmios.packages.${system}."ogmios:exe:ogmios"
config.packages.dens-query-cli
];
npmExtraDependencies =
[
inputs.prelude-typescript.packages.${system}.lib
inputs.plutus-ledger-api-typescript.packages.${system}.lib
config.packages.lbf-dens-db-typescript
config.packages.lbf-dens-typescript
];
};
in
{
# When developing, in this directory, run
# ```bash
# nix develop .#dens-integration-typescript
# ```
# and it'll give you some goodies (`node_modules/` for dependencies +
# `./.extra-dependencies`).
devShells = {
inherit (tsFlake.devShells) dens-integration-typescript;
};
inherit (tsFlake) checks;
};
};
}