Skip to content

Commit 2aa37bb

Browse files
authored
solana-cli: enable bpf and sbf commands (#332345)
2 parents 1b956ac + c9f907a commit 2aa37bb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkgs/by-name/so/solana-cli/package.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
# Taken from https://github.com/solana-labs/solana/blob/master/scripts/cargo-install-all.sh#L84
1616
solanaPkgs ?
1717
[
18+
"cargo-build-bpf"
19+
"cargo-test-bpf"
20+
"cargo-build-sbf"
21+
"cargo-test-sbf"
1822
"solana"
1923
"solana-bench-tps"
2024
"solana-faucet"
@@ -105,6 +109,11 @@ rustPlatform.buildRustPackage rec {
105109
106110
mkdir -p $out/bin/sdk/bpf
107111
cp -a ./sdk/bpf/* $out/bin/sdk/bpf/
112+
mkdir -p $out/bin/sdk/sbf
113+
cp -a ./sdk/sbf/* $out/bin/sdk/sbf
114+
mkdir -p $out/bin/deps
115+
find . -name libsolana_program.dylib -exec cp {} $out/bin/deps \;
116+
find . -name libsolana_program.rlib -exec cp {} $out/bin/deps \;
108117
'';
109118

110119
# Used by build.rs in the rocksdb-sys crate. If we don't set these, it would

0 commit comments

Comments
 (0)