Skip to content

Commit 5f10b98

Browse files
committed
fix komet/default.nix
1 parent cdd7eeb commit 5f10b98

2 files changed

Lines changed: 18 additions & 8 deletions

File tree

nix/komet/default.nix

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@
1515
secp256k1,
1616
which,
1717
rust-bin,
18+
stellar-cli,
1819

1920
komet-rust ? null,
21+
komet-stellar ? null,
2022
komet-pyk,
2123
rev ? null
2224
} @ args:
2325
let
2426
rustWithWasmTarget = rust-bin.stable.latest.default.override {
25-
targets = [ "wasm32-unknown-unknown" ];
27+
targets = [ "wasm32v1-none" ];
2628
};
2729
in
2830
stdenv.mkDerivation {
@@ -74,15 +76,22 @@ stdenv.mkDerivation {
7476
cp -r ./kdist-*/* $out/kdist/
7577
7678
makeWrapper ${komet-pyk}/bin/komet $bin/bin/komet --prefix PATH : ${
77-
lib.makeBinPath
78-
([ which k ] ++ lib.optionals (komet-rust != null) [
79-
komet-rust
80-
])
79+
lib.makeBinPath (
80+
[ which k ]
81+
++ lib.optionals (komet-rust != null) [
82+
komet-rust
83+
]
84+
++ lib.optionals (komet-stellar != null) [
85+
komet-stellar
86+
]
87+
)
8188
} --set KDIST_DIR $out/kdist
8289
'';
8390

84-
passthru = if komet-rust == null then {
85-
# list all supported solc versions here
86-
rust = callPackage ./default.nix (args // { komet-rust = rustWithWasmTarget; });
91+
passthru = if komet-stellar == null then {
92+
rust-stellar = callPackage ./default.nix (args // {
93+
komet-rust = rustWithWasmTarget;
94+
komet-stellar = stellar-cli;
95+
});
8796
} else { };
8897
}

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ email = "contact@runtimeverification.com"
1717

1818
[project.scripts]
1919
komet = "komet.komet:main"
20+
komet-kdist = "pyk.kdist.__main__:main"
2021

2122
[project.entry-points.kdist]
2223
soroban-semantics = "komet.kdist.plugin"

0 commit comments

Comments
 (0)