File tree Expand file tree Collapse file tree 12 files changed +792
-9
lines changed Expand file tree Collapse file tree 12 files changed +792
-9
lines changed Original file line number Diff line number Diff line change 77 lbfRustOptsForPlutus = utils . overrideAttrs
88 {
99 imports = {
10- default = [ ] ;
11- override = libs : libs ++ [ ../../libs/lbf-prelude ../../libs/lbf-plutus ] ;
12- } ;
13- dependencies = {
14- default = [ ] ;
15- override = deps : deps ++ [ "lbf-prelude-rust" "lbf-plutus-rust" ] ;
10+ default = { } ;
11+ override = libs : libs // {
12+ lbf-prelude = ../../libs/lbf-prelude ;
13+ lbf-plutus = ../../libs/lbf-plutus ;
14+ } ;
1615 } ;
1716 classes = {
1817 default = [ ] ;
1918 override = cls : cls ++ [ "Prelude.Eq" "Plutus.V1.PlutusData" ] ;
2019 } ;
2120 configs = {
2221 default = [ ] ;
23- override = _ : [ ../../lambda-buffers-codegen/data/rust-prelude.json ../../lambda-buffers-codegen/data/rust-plutus.json ] ;
22+ override = _ : [ ../../lambda-buffers-codegen/data/rust-prelude-base .json ../../lambda-buffers-codegen/data/rust-plutus-pla .json ] ;
2423 } ;
2524 }
2625 lbfRustOpts ;
Original file line number Diff line number Diff line change 8484 text = ''
8585 num-bigint = "0.4.4"
8686 serde_json = { version = "1.0.107", features = ["arbitrary_precision"] }
87- plutus-ledger-api = { github = "https://github.com/mlabs-haskell/plutus-ledger-api-rust", features = ["lbf"] }
87+ plutus-ledger-api = { git = "https://github.com/mlabs-haskell/plutus-ledger-api-rust", features = ["lbf"] }
8888 '' ;
8989 } ;
9090
123123 mkdir -p $out/src;
124124 cp -r autogen/* $out/src
125125 cp Cargo.toml $out/Cargo.toml;
126- cp build.json $out/build.json;
127126
128127 # Generating module files
129128 chmod -R u+w $out/src
Original file line number Diff line number Diff line change 8888 ./testsuites/lbt-plutus/lbt-plutus-haskell/build.nix
8989 ./testsuites/lbt-plutus/lbt-plutus-purescript/build.nix
9090 ./testsuites/lbt-plutus/lbt-plutus-plutarch/build.nix
91+ ./testsuites/lbt-plutus/lbt-plutus-rust/build.nix
9192 ./experimental/build.nix
9293 ] ;
9394 debug = true ;
Original file line number Diff line number Diff line change 9595 "${ config . packages . codegen-configs } /plutarch-plutus.json"
9696 ] ;
9797 } ;
98+
99+ lbf-plutus-rust = config . lbf-nix . lbfRust {
100+ name = "lbf-plutus" ;
101+ src = ./lbf-plutus ;
102+ imports = { lbf-prelude = ./lbf-prelude ; } ;
103+ files = [ "Plutus/V1.lbf" "Plutus/V2.lbf" ] ;
104+ classes = [ "Prelude.Eq" "Prelude.Json" "Plutus.V1.PlutusData" ] ;
105+ configs = [
106+ "${ config . packages . codegen-configs } /rust-prelude-base.json"
107+ "${ config . packages . codegen-configs } /rust-plutus-pla.json"
108+ ] ;
109+ } ;
98110 } ;
99111
100112 # The following devShells allow one to conveniently play with some of the
Original file line number Diff line number Diff line change 1919 files = [ "Foo.lbf" "Foo/Bar.lbf" "Days.lbf" ] ;
2020 } ;
2121
22+ packages . lbf-plutus-golden-api-rust = config . lbf-nix . lbfPlutusRust {
23+ name = "lbf-plutus-rust-golden-api" ;
24+ src = ./. ;
25+ files = [ "Foo.lbf" "Foo/Bar.lbf" "Days.lbf" ] ;
26+ } ;
27+
2228 } ;
2329}
2430
Original file line number Diff line number Diff line change 1515 phases = "installPhase" ;
1616 installPhase = "ln -s $src $out" ;
1717 } ;
18+
19+ lbt-plutus-golden-rust = pkgs . stdenv . mkDerivation {
20+ name = "lbt-plutus-golden-data" ;
21+ src = ./. ;
22+ phases = "installPhase" ;
23+ installPhase = "ln -s $src $out" ;
24+ } ;
1825 } ;
1926
2027 } ;
Original file line number Diff line number Diff line change 1+ nix_direnv_watch_file build.json
2+ use flake ../../..# dev-lbt-plutus-rust
Original file line number Diff line number Diff line change 1+ /target
2+ /proptest-regressions
3+ /.extras
4+ /data
You can’t perform that action at this time.
0 commit comments