1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-06-27 16:35:59 +00:00
conduit/nix/shell.nix

70 lines
1.3 KiB
Nix
Raw Permalink Normal View History

# Keep sorted
2024-05-09 15:20:48 +02:00
{
alejandra,
cargo-deb,
default,
engage,
go,
inputs,
jq,
lychee,
mdbook,
mkShell,
olm,
system,
taplo,
toolchain,
}:
mkShell {
2024-05-09 15:20:48 +02:00
env =
default.env
// {
# Rust Analyzer needs to be able to find the path to default crate
# sources, and it can read this environment variable to do so. The
# `rust-src` component is required in order for this to work.
RUST_SRC_PATH = "${toolchain}/lib/rustlib/src/rust/library";
};
# Development tools
2024-05-09 15:20:48 +02:00
nativeBuildInputs =
default.nativeBuildInputs
++ [
# Always use nightly rustfmt because most of its options are unstable
#
# This needs to come before `toolchain` in this list, otherwise
# `$PATH` will have stable rustfmt instead.
inputs.fenix.packages.${system}.latest.rustfmt
# rust itself
toolchain
2024-05-09 15:20:48 +02:00
# CI tests
engage
2024-05-09 15:20:48 +02:00
# format toml files
taplo
2024-05-06 19:43:13 +01:00
2024-05-09 15:20:48 +02:00
# Needed for producing Debian packages
cargo-deb
2024-05-06 19:43:13 +01:00
2024-05-09 15:20:48 +02:00
# Needed for our script for Complement
jq
2024-05-09 15:20:48 +02:00
# Needed for Complement
go
olm
2024-05-09 15:20:48 +02:00
# Needed for our script for Complement
jq
2024-05-09 15:20:48 +02:00
# Needed for finding broken markdown links
lychee
2024-05-09 15:20:48 +02:00
# Useful for editing the book locally
mdbook
2024-05-09 15:20:48 +02:00
# nix formatter
alejandra
];
}