Skip to content

Commit d950044

Browse files
committed
Adds lbf-plutus-to-plutustx tool
1 parent a4518d5 commit d950044

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

lambda-buffers-frontend/build.nix

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,24 @@
121121
}} "$@";
122122
'';
123123

124+
lbf-plutus-to-plutustx = pkgs.writeShellScriptBin "lbf-plutus-to-plutustx" ''
125+
export LB_COMPILER=${config.packages.lbc}/bin/lbc;
126+
mkdir autogen;
127+
mkdir .work;
128+
${config.lbf-nix.lbfBuild.buildCall {
129+
files = [];
130+
import-paths = [ config.packages.lbf-prelude config.packages.lbf-plutus ];
131+
gen = "${config.packages.lbg-plutustx}/bin/lbg-plutustx";
132+
gen-classes = ["Prelude.Eq" "Plutus.V1.PlutusData" ];
133+
gen-dir = "autogen";
134+
gen-opts = [
135+
"--config=${config.packages.codegen-configs}/plutustx-prelude.json"
136+
"--config=${config.packages.codegen-configs}/plutustx-plutus.json"
137+
];
138+
work-dir = ".work";
139+
}} "$@";
140+
'';
141+
124142
lbf-prelude-to-purescript = pkgs.writeShellScriptBin "lbf-prelude-to-purescript" ''
125143
export LB_COMPILER=${config.packages.lbc}/bin/lbc;
126144
mkdir -p autogen;

0 commit comments

Comments
 (0)