mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-26 14:00:51 +00:00
nix: use packaged foreign dependencies in dev shell
This commit is contained in:
parent
770ea0c705
commit
17be937e3d
1 changed files with 9 additions and 3 deletions
12
flake.nix
12
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
|
||||
'';
|
||||
};
|
||||
}));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue