Skip to content

Commit 539db52

Browse files
committed
build: Move cargo-zigbuild from the default devshell
1 parent 97caaea commit 539db52

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

flake.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@
178178
cargo-expand
179179
cargo-insta
180180
cargo-nextest
181-
cargo-zigbuild # only here for dev-deps
182181
jq
183182
litecli
184183
nixd
@@ -190,6 +189,12 @@
190189
wasmtime.out
191190
];
192191
};
192+
devShells.cargo-zigbuild = pkgs.mkShell {
193+
nativeBuildInputs = with pkgs;
194+
[
195+
cargo-zigbuild
196+
];
197+
};
193198
packages = rec {
194199
obeliskLibcNixDev = makeObelisk "dev" null ./rust-toolchain.toml;
195200
obeliskLibcNix = makeObelisk "release" null ./rust-toolchain.toml;

scripts/dev-deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protoc --version >> dev-deps.txt
3333
rustc --version >> dev-deps.txt
3434
wasm-tools --version >> dev-deps.txt
3535
wasmtime --version >> dev-deps.txt
36-
cargo-zigbuild --version >> dev-deps.txt
36+
nix develop .#cargo-zigbuild --command cargo-zigbuild --version >> dev-deps.txt
3737

3838
# docker deps
3939
echo "litestream $(get_litestream_version)" >> dev-deps.txt

0 commit comments

Comments
 (0)