-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.nix
37 lines (30 loc) · 948 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
30
31
32
33
34
35
36
37
{ inputs, ... }: {
perSystem = { config, inputs', system, ... }:
let
rustFlake = inputs.flake-lang.lib."${system}".rustFlake
{
src = ./.;
version = "v2";
crateName = "tx-bakery";
cargoNextestExtraArgs = "--no-capture";
extraSources = [
# LB base schema and runtime libs
inputs'.lbf.packages.lbf-prelude-rust
inputs'.lbf.packages.lbf-plutus-rust
# Demo API
config.packages.lbf-tx-bakery-tests-config-api-rust
config.packages.lbf-tx-bakery-tests-plutus-api-rust
];
data = [
{
name = "tx-bakery-test-scripts-config.json";
path = config.packages.tx-bakery-test-scripts-config;
}
];
devShellHook = config.settings.shell.hook;
};
in
{
inherit (rustFlake) packages checks devShells;
};
}