Skip to content

Commit 160dc33

Browse files
author
jared
committed
Change overlayAttrs.extras -> lbf-nix
1 parent 64009d3 commit 160dc33

File tree

2 files changed

+46
-4
lines changed

2 files changed

+46
-4
lines changed

runtimes/typescript/lbr-plutus/build.nix

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,34 @@
33
perSystem = { config, ... }:
44
let
55
typescriptFlake =
6-
config.overlayAttrs.extras.typescriptFlake {
6+
config.lbf-nix.typescriptFlake {
77
name = "lbr-plutus";
88
src = ./.;
99
dependencies = [ config.packages."lbr-prelude-typescript-tgz" ];
1010
};
1111
in
1212
{
13-
inherit (typescriptFlake) packages checks devShells;
13+
14+
packages = {
15+
lbr-plutus-typescript = typescriptFlake.packages.lbr-plutus-typescript;
16+
lbr-plutus-typescript-tgz = typescriptFlake.packages.lbr-plutus-typescript-tgz;
17+
lbr-plutus-typescript-node2nix = typescriptFlake.packages.lbr-plutus-typescript-node2nix;
18+
};
19+
20+
devShells = {
21+
lbr-plutus-typescript = typescriptFlake.devShells.lbr-plutus-typescript;
22+
};
23+
24+
checks = {
25+
lbr-plutus-typescript-test = typescriptFlake.checks.lbr-plutus-typescript-test;
26+
};
27+
28+
# TODO(jaredponn): for some reason, writing the more terse `inherit`
29+
# seems to cause infinite recursion.
30+
# ```
31+
# inherit (typescriptFlake) packages checks devShells;
32+
# ```
33+
# So instead, we explicitly write out all the attribute names and what
34+
# they are assigned to.
1435
};
1536
}

runtimes/typescript/lbr-prelude/build.nix

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,34 @@
33
perSystem = { config, ... }:
44
let
55
typescriptFlake =
6-
config.overlayAttrs.extras.typescriptFlake {
6+
config.lbf-nix.typescriptFlake {
77
name = "lbr-prelude";
88
src = ./.;
99
};
1010
in
1111
{
12-
inherit (typescriptFlake) packages checks devShells;
12+
packages = {
13+
lbr-prelude-typescript = typescriptFlake.packages.lbr-prelude-typescript;
14+
lbr-prelude-typescript-tgz = typescriptFlake.packages.lbr-prelude-typescript-tgz;
15+
lbr-prelude-typescript-node2nix = typescriptFlake.packages.lbr-prelude-typescript-node2nix;
16+
};
17+
18+
devShells =
19+
{
20+
lbr-prelude-typescript = typescriptFlake.devShells.lbr-prelude-typescript;
21+
};
22+
23+
checks = {
24+
lbr-prelude-typescript-test = typescriptFlake.checks.lbr-prelude-typescript-test;
25+
};
26+
27+
# TODO(jaredponn): for some reason, writing the more terse `inherit`
28+
# seems to cause infinite recursion.
29+
# ```
30+
# inherit (typescriptFlake) packages checks devShells;
31+
# ```
32+
# So instead, we explicitly write out all the attribute names and what
33+
# they are assigned to.
1334
};
1435

1536
}

0 commit comments

Comments
 (0)