From 17be937e3d5acd3628b4779c43e87f75ef89d3c1 Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Fri, 5 May 2023 13:59:24 -0700 Subject: [PATCH] nix: use packaged foreign dependencies in dev shell --- flake.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 418f70c84..8f81faec3 100644 --- a/flake.nix +++ b/flake.nix @@ -102,9 +102,9 @@ # The CI checks against the latest nightly rustfmt, so we should too. (rust-bin.selectLatestNightlyWith (toolchain: toolchain.rustfmt)) - # Required build dependencies - openssl - pkg-config # to find openssl + # Foreign dependencies + openssl zstd libgit2 libssh2 + pkg-config # Additional tools recommended by contributing.md cargo-deny @@ -112,6 +112,12 @@ cargo-nextest cargo-watch ]; + + shellHook = '' + export RUST_BACKTRACE=1 + export ZSTD_SYS_USE_PKG_CONFIG=1 + export LIBSSH2_SYS_USE_PKG_CONFIG=1 + ''; }; })); }