forked from mirrors/jj
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.
|
# The CI checks against the latest nightly rustfmt, so we should too.
|
||||||
(rust-bin.selectLatestNightlyWith (toolchain: toolchain.rustfmt))
|
(rust-bin.selectLatestNightlyWith (toolchain: toolchain.rustfmt))
|
||||||
|
|
||||||
# Required build dependencies
|
# Foreign dependencies
|
||||||
openssl
|
openssl zstd libgit2 libssh2
|
||||||
pkg-config # to find openssl
|
pkg-config
|
||||||
|
|
||||||
# Additional tools recommended by contributing.md
|
# Additional tools recommended by contributing.md
|
||||||
cargo-deny
|
cargo-deny
|
||||||
|
@ -112,6 +112,12 @@
|
||||||
cargo-nextest
|
cargo-nextest
|
||||||
cargo-watch
|
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