mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-10-18 19:10:30 +08:00
Adds nix tooling to allow people to develop using nix dependencies. Uses niv to pin nixpkgs, rust-overlay, and niv itself. This will give Rust tooling that is up to date with rustc-1.64.0. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
22 lines
414 B
Nix
22 lines
414 B
Nix
{ sources ? import ./sources.nix
|
|
, pkgs ? import sources.nixpkgs {
|
|
overlays = [ (import sources.rust-overlay) ];
|
|
}
|
|
, rust-overlay ? pkgs.rust-bin.stable.latest.default
|
|
}:
|
|
with pkgs;
|
|
mkShell {
|
|
name = "build";
|
|
buildInputs = [
|
|
# cargo tooling
|
|
cargo-deny
|
|
cargo-watch
|
|
|
|
# hard dependencies
|
|
cmake
|
|
openssl
|
|
pkgconfig
|
|
rust-overlay
|
|
];
|
|
}
|